Documents and examples of PythonMagick

后端 未结 6 963
长发绾君心
长发绾君心 2020-12-04 18:09

Where can I find the document and examples of PythonMagick?

I did a search on Google but no much information was found.

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-04 18:45

    From what I can tell, PythonMagick wrapps the Magick++ library. I have been able to copy and paste C++ code using this library into python and it works as expected. Plus the names of the classes and member functions match (where as MagickWand seems to be totally different).

        import PythonMagick as Magick
        img = Magick.Image("testIn.jpg")
        img.quality(100) #full compression
        img.magick('PNG')
        img.write("testOut.png")
    

提交回复
热议问题