i'm writing django/python application , need convert pdf files uploaded user jpegs (files scans)
i'm trying use wand, imagemagick backend (on osx) , keep getting following error:
missingdelegateerror @ /user_docs/upload/certificate/ no decode delegate image format `png' @ error/constitute.c/readimage/501 my current test code simple as:
with wandimage(filename='/users/username/pictures/telechargement.pdf') img: img.format = 'jpeg' img.save(filename='/users/username/pictures/bzzz.jpeg') some information:
- the file exists (i verify
os.path.exists) - i can convert file pdf jpg on command line using
convert - i tried set
dyld_library_pathinclude imagemagick lib directory identify -list configure | grep delegatesreturns
delegates bzlib fftw fontconfig freetype gs jpeg jng lcms2 lzma mpeg png tiff x11 xml zlib
anyone has idea?
thanks
ok, found it! key rtfm:
http://docs.wand-py.org/en/0.4.0/guide/install.html#install-imagemagick-on-mac
i missing the:
$ export magick_home=/opt/local
Comments
Post a Comment