I want to create an image from a pdf file. I have installed ImageMagick on a Linux server and successfully created an image from a terminal with root access.
Command:
/usr/local/bin/convert http://www.artisticancestry.com/sites/default/files/media/Getting%20Started_7.pdf /public_html/testing.png
But When i am going to execute this command from php exec() function. It is showing this type of error
error:
convert: unable to open image /public_html/testing-0.png': No such file or directory @ error/blob.c/OpenBlob/2642.
convert: WriteBlob Failed
/public_html/testing-0.png' @ error/png.c/MagickPNGErrorHandler/1751.
There is some permission issue but don't know which file has no permission.How can I find out what is causing this problem and how can I solve it?
It was a permission issue for me
chmod -R 777 /dir
/dir = Directory where you want to writing your image
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With