Page 1 of 1

Which Python API?

Posted: 2017-10-15T04:26:35-07:00
by miket
Hi Folks,

I've been using PerlMagic for a while now. However, I've recently been using Python for some (non-imaging) work, and would like to start using Python with ImageMagick.

There appears to be a number of different wrapper implementations, some of which do not appear to have been updated recently. I'm looking for something that will give full functionality of all the IM process and something that keeps up to date with all IM fixes.

Does anybody have any recommendations of which wrapper would be best for my requirements?

Ta

Mike

Re: Which Python API?

Posted: 2017-10-15T14:35:37-07:00
by fmw42
I am not an expert on ImageMagick bindings to Python. But from what I have seen from their documentation, Wand (http://docs.wand-py.org/en/0.4.4/) does a pretty good job. One thing that seems missing is dealing with profiles.

Also consider Imagemagick's Pythonmagick (http://www.imagemagick.org/download/python/). At least with the latter, you may be able to ask for features to be added if they are not there.

Another option is to use Python subprocess to make calls to ImageMagick directly.

Re: Which Python API?

Posted: 2017-11-10T05:23:51-07:00
by miket
Thanks Fred,

I suspected this. Think I may stay with perl for the moment. Better the Devil you know :)

Mike