更新时间:2021-11-10 23:31:29
我建议使用魔杖(解释如下) 。
I would recommend using Wand (explanations follows).
我正在寻找与ImageMagick库的正确绑定,这将:
I was looking for proper binding to ImageMagick library, that would:
但实际上python API(绑定)有太多不同的(大多数已停产)版本。在阅读了Benjamin Schweizer的精彩历史概述后,它已经变得清晰(另见他的 github wiki ):
But indeed python API (binding) has too many different (mostly discontinued) versions. After reading a nice historical overview by Benjamin Schweizer it has all become clear (also see his github wiki):
现在Wand只是一个(简化)ImageMagick的C API.. API是C编程语言和ImageMagick图像处理库之间的推荐接口。与MagickCore C API不同,MagickWand仅使用一些不透明类型。访问器可用于设置或变得重要魔杖属性。 (查看项目主页)
Now Wand is just a (reduced) C API to the ImageMagick ".. API is the recommended interface between the C programming language and the ImageMagick image processing libraries. Unlike the MagickCore C API, MagickWand uses only a few opaque types. Accessors are available to set or get important wand properties." (See project homepage)
因此,它已经是一个易于维护的简化界面。
So it is already a simplified interface that is easer to maintain.