wand 图像处理Python的ImageMagick绑定

wand简介

wand,Python第三方库,是基于ctypes的简单ImageMagick绑定。

wand应用实例

from wand.image import Image
from wand.display import display

with Image(filename=' test.png') as img:
    print(img.size)
    for r in 1, 2, 3:
        with img.clone() as i:
            i.resize(int(i.width * r * 0.25), int(i.height * r * 0.25))
            i.rotate(90 * r)
            i.save(filename='test-{0}.png'.format(r))
            display(i)

wand Github统计数据

MIT License (数据来源:pypi)

Github 1.3k stars

wand安装命令

pip install Wand

wand Python版本要求

supporting 2.7, 3.3+

免责声明:内容编辑自网络,仅供参考,不保证正确性,不作任何决策依据!!以上数据皆截止于博文的写稿日期。


行业导航 / Python指南 :
























Copyright © 2022-2024 笨鸟工具 x1y1z1.com All Rights Reserved.