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 filename file.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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -