I have read a lot of articles that try to describe how to convert PDF's to a PNG image. But I simply cannot get it working. I tried to import PythonMagick on top of my script but it returns the error ImportError: No module named PythonMagick.
Is it possible to install PythonMagick as easy as shell tools via Homebrew?! The background is my Python script, which is much shorter than the equivalent Bash script. The only thing that is not working is the PDF to PNG conversion and scaling of the final image. In Bash, I use Imagemagick for this, but I want to do this in Python too, since it is a one liner.
Any Ideas?
EDIT
The code can be found on Github: https://github.com/Blackjacx/Scripts/blob/master/iconizer.py
SOLUTION FOUND
Using MagickWand works better so I am using this. To install it I did:
$ brew install imagemagick@6
$ export MAGICK_HOME=/usr/local/opt/imagemagick@6
Try this for the error ImportError: No module named PythonMagick
Also have a look at this link