Problem converting PDF to JPG for Flash Flipbook app
Posted: 2008-12-07T19:19:11-07:00
Hi everyone,
We are having a problem creating a Flash Flipbook from PDF using the command line of IM in a PHP / MySQL Web application. The flipbook app does not support PDF inputs so we must convert it to JPG or PNG, etc. When we convert the files we are getting horrible results.
I have read various posts trying to avoid posting here, but I'm a bit lost at this point. I am not personally a programmer, but I'm trying to find possible solutions for my programming team that is working on this project, so I apologize for any lack of any info you may need.
It seems the problems could stem from various issues ranging from CMYK to layered postscript files given this is dealing with print resolution PDF files. This is a very important project, and I'm even willing to pay a reasonable fee to an expert on the forum that might be interested in personally working on troubleshooting and resolving this imagemagick issue directly for us (you can mail me at daren@zouth.com if interested).
Otherwise, thanks in advance to anyone that can reply and make suggestions on how a properly formatted script for PDF conversion should look.
The code we are now using inside our PHP file, which seems to not be working, is: exec("/usr/local/bin/convert -depth 100 -normalize -quality 100 ".$uploaddir."/".$file." ".$uploaddir."/".$ext_array.".jpg");
BEFORE THIS . . . I think the code we tried was: exec("/usr/local/bin/convert -depth 10 -density 400 -normalize ".$uploaddir."/".$file." -quality 100 ".$uploaddir."/".$ext_array.".jpg");
The results for that, if correct, were: http://www.zouth.com/flipbook/Heater/
You can see the images and the PDF we started with. These are all before the flipbook even processed them. If I have the code wrong from the actual output, at least this is the best output we have been able to get from our various trials.
Thanks in advance!
We are having a problem creating a Flash Flipbook from PDF using the command line of IM in a PHP / MySQL Web application. The flipbook app does not support PDF inputs so we must convert it to JPG or PNG, etc. When we convert the files we are getting horrible results.
I have read various posts trying to avoid posting here, but I'm a bit lost at this point. I am not personally a programmer, but I'm trying to find possible solutions for my programming team that is working on this project, so I apologize for any lack of any info you may need.
It seems the problems could stem from various issues ranging from CMYK to layered postscript files given this is dealing with print resolution PDF files. This is a very important project, and I'm even willing to pay a reasonable fee to an expert on the forum that might be interested in personally working on troubleshooting and resolving this imagemagick issue directly for us (you can mail me at daren@zouth.com if interested).
Otherwise, thanks in advance to anyone that can reply and make suggestions on how a properly formatted script for PDF conversion should look.
The code we are now using inside our PHP file, which seems to not be working, is: exec("/usr/local/bin/convert -depth 100 -normalize -quality 100 ".$uploaddir."/".$file." ".$uploaddir."/".$ext_array.".jpg");
BEFORE THIS . . . I think the code we tried was: exec("/usr/local/bin/convert -depth 10 -density 400 -normalize ".$uploaddir."/".$file." -quality 100 ".$uploaddir."/".$ext_array.".jpg");
The results for that, if correct, were: http://www.zouth.com/flipbook/Heater/
You can see the images and the PDF we started with. These are all before the flipbook even processed them. If I have the code wrong from the actual output, at least this is the best output we have been able to get from our various trials.
Thanks in advance!