Page 1 of 1

Problem with convert

Posted: 2007-06-24T11:55:40-07:00
by aecaudel
I am trying to create a PDF from several JPG's using convert:

convert -verbose 1.jpg 2.jpg test.pdf

This only adds the first JPG to the test.pdf. It ignores the second and any subsequent JPG's.

Here is the output of the above command:

1.jpg JPEG 1164x1600 1164x1600+0+0 DirectClass 8-bit 811.566kb 0.470u 0:02
2.jpg JPEG 1159x1600 1159x1600+0+0 DirectClass 8-bit 870.332kb
1.jpg=>/tmp/magick-XXjEc2n3 JPEG 1164x1600 1164x1600+0+0 DirectClass 8-bit 816.182kb 0.770u 0:02
1.jpg=>/tmp/magick-XXZqtwPk JPEG 1164x1600=>77x106 77x106+0+0 DirectClass 16-bit 4.90234kb
2.jpg=>/tmp/magick-XXJ0EphC[1] JPEG 1159x1600 1159x1600+0+0 DirectClass 8-bit 873.639kb 0.730u 0:02
2.jpg=>/tmp/magick-XXnW8YKU[1] JPEG 1159x1600=>77x106 77x106+0+0 DirectClass 16-bit 4.41016kb
1.jpg=>test.pdf[0] JPEG 1164x1600 1164x1600+0+0 DirectClass 8-bit 1.66198mb 2.280u 0:03

I am using IM 6.3 and ghostview-esp 8.15.

Any help would be appreciated.

Re: Problem with convert

Posted: 2007-06-24T12:12:26-07:00
by magick
We tried your command with ImageMagick 6.3.4-10, the current release, and it produced the expected results (two images in the PDF).

Re: Problem with convert

Posted: 2007-06-24T18:28:06-07:00
by aecaudel
Good thought but upgrading to 6.3.4 didn't help.

What version of ghostscript are you using?

Re: Problem with convert

Posted: 2007-06-26T18:17:58-07:00
by anthony
Alturnative PDF generation from images are given in IM examples of PDF specific info.
http://www.imagemagick.org/Usage/formats/#pdf

Feedback is helpful, as these are contributed solutions, not ones I have used myself.

Remember IM is a raster image processor, while PDF is a vector image, it does a good job, but may not be the best for a specific vector format.