Problem with convert

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
aecaudel

Problem with convert

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with convert

Post 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).
aecaudel

Re: Problem with convert

Post by aecaudel »

Good thought but upgrading to 6.3.4 didn't help.

What version of ghostscript are you using?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Problem with convert

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply