php - Error converting PDF to PNG Imagemagick: unable to create temporary file -
i have written php
script programmatically create png
thumbnail every pdf
in folder. use imagemagick
it, executing following command:
exec('convert file.pdf[0] file.png');
everything working i've started error every time try:
convert: unable create temporary file
file.pdf
: ӓ?u|svu?t???[u @ error/pdf.c/readpdfimage/381. convert: missing image filenamefile.png
@ error/convert.c/convertimagecommand/2940.
of course, i've tried directly in command line , same happens.
any idea?
ps: i´m working imagemagick 6.6.0-4
i´ve seen temp directory full of files created imagemagick. don´t know reason why still there. if delete them, starts work again.
Comments
Post a Comment