Page 1 of 1

[SOLVED]convert missing image filename-path to image not cor

Posted: 2011-01-03T13:21:43-07:00
by zi94sm65
I am having trouble with using convert to change a multipage PDF file into a series of jpg's: it all worked last quarter and now it does not. I did not make any changes to the program and the webserver company swears they have not changed any settings, but it is now failing.

The convert command i am using looks like this:

Code: Select all

convert -limit memory 1024 -limit map 4096 -density 300x300 -define pdf:use-cropbox=true /home/myusrname/newsletters/NEWSLTR_webmaster_0a95ca8a5b9f24516616681fefcfcd88.PDF -resize 35% -quality 100 /home/myusrname/public_html/newsletters/documents/webmaster/2010Fall/pages/page_%03d.jpg
The following errors are reported in the PHP application:
Current allocation mode is local
The path to the image is not correct.
Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.
However, the path to the PDF file is correct, i have intentionally located it above the public_html folder in the root of my account and it previously had no trouble finding it there.

The webserver log files report:
convert: missing an image filename `/home/myusrname/public_html/newsletters/documents/webmaster/2010Fall/pages/page_%03d.jpg'.
convert: Postscript delegate failed `/home/myusrname/newsletters/NEWSLTR_webmaster_0a95ca8a5b9f24516616681fefcfcd88.PDF'.
My ImageMagick VERSION 6.2.8 with:

CONFIGURE ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --with-modules --with-perl --with-x --with-threads --with-magick_plus_plus --with-gslib --with-wmf --with-lcms --with-rsvg --with-xml --with-perl-options=INSTALLDIRS=vendor CC='gcc -L/builddir/build/BUILD/ImageMagick-6.2.8/magick/.libs' LDDLFLAGS='-shared -L/builddir/build/BUILD/ImageMagick-6.2.8/magick/.libs' --with-windows-font-dir=/usr/share/fonts/default/TrueType --without-dps

LIBS -lMagick -llcms -ltiff -lfreetype -ljpeg -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lpthread -lm -lpthread

Server company says Ghostscript 8.15.2 is installed so it should be able to do the pdf to jpg conversion.

Is there anything wrong with the way i have written the convert command? Any suggestions on what i can do to figure out what the problem is?

[SOLVED]convert missing image filename-path to image not cor

Posted: 2011-01-11T11:20:13-07:00
by zi94sm65
Turns out there was nothing wrong with my imagemagick or ghostscript installations or convert command. There was something wrong with the PDF file. I am not exactly sure what was wrong with it other than it was created by using Microsoft Word 2007. Once i created a new PDF using a different application the server's convert command worked flawlessly.