Page 1 of 1

Problem with convert, no errors and no destination images.

Posted: 2006-12-14T11:56:15-07:00
by Spinx
I try to convert a PDF file into images, and this command works with other PDF files.

Doesn't create any images:

Code: Select all

convert -strip -profile USWebCoatedSWOP.icc -density 117.32 mamoetMagazine.pdf -resize 970 -profile sRGB.icm mamoetMagazine\big\img.jpg
Does create images as it should:

Code: Select all

convert -strip -profile USWebCoatedSWOP.icc -density 72 mamoetMagazine.pdf -resize 406x570! -profile sRGB.icm mamoetMagazine\pages\img.jpg
What can be wrong? As I said the first command works with all other PDF-files I have tried.

Download the PDF (12,7mb)

Posted: 2006-12-14T15:15:31-07:00
by magick
Your PDF appears corrupt or Ghostscript 7.07 or 8.15 are not sufficient. Both return errors when attempting to render the document.

Posted: 2006-12-14T15:38:17-07:00
by el_supremo
With IM 6.3.1 and GS 8.53 I got both commands to render the pages if -density is moved after the input filename:

Code: Select all

convert -strip -profile USWebCoatedSWOP.icc mamoetMagazine.pdf -density 117.32 -resize 970 -profile sRGB.icm mamoetMagazine\big\img.jpg
Pete

Posted: 2006-12-14T16:16:23-07:00
by magick
We converted your PDF image to JPEG without any problems with Ghostscript 8.54.

Posted: 2006-12-14T17:00:39-07:00
by anthony
I suggest you.... read the image before stripping and profiling!
Otherwise it is undefined if the strip is done first or the profile is done first.

See IM Examples... Legacy Command Line Style
http://www.cit.gu.edu.au/~anthony/graph ... cs/#legacy

Posted: 2006-12-15T02:31:21-07:00
by Spinx
Thanks for the replys. I tried to change my command and ended up with this:

Code: Select all

convert Wiseguide.pdf -strip -profile USWebCoatedSWOP.icc -density 117.32 -resize 970 -profile sRGB.icm img.jpg
The convert works but the images I get now is not as sharp as the images with the last command, what am I doing wrong?

Old image
New image

Regards!

Posted: 2006-12-17T18:45:30-07:00
by anthony
-density is a input setting.. It needs to be defined before the image read.

The other options are operators and need to be applied AFTER the image has been read, in the order you want to apply them.