Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I run

convert *.jpg output.pdf

the output looks like this:

enter image description here

Why is the first page bigger then the others in the PDF? The original JPEGs were all the same size!

share|improve this question
    
Oh @Lord, how we love your edits! –  Ivo Flipse Mar 9 '11 at 16:07
add comment

3 Answers

I had the same problem. The main issue of this is different resolution of your images you want to convert to pdf file.

Use below command (like cjm mentions) to check the resolution of your photos.

identify -verbose file_name.jpg | grep "Resolution"

All images you want to convert to pdf file should be in the same resolution like ex: 72x72. This give you more less equal size each one of your pdf pages.

Change the resolution of your images using programs like ex: convert (more info) or gimp (more info)

...then run:

convert *.jpg output.pdf
share|improve this answer
add comment

I had the same problem and cjm's comment pointed me in the right direction, but didn't give me a solution. I found the solution was to specify the DPI manually with the -density option:

convert -density *.JPG output.pdf
share|improve this answer
add comment

A JPEG image can store a resolution (i.e. pixels per inch) in addition to its geometry (actual number of pixels). convert uses the resolution when converting JPEGs to a PDF. It's probable that the first image has a lower resolution than the others. If they have the same size in pixels, then an image with a lower pixels per inch will be bigger.

Try running identify -verbose file.jpg on a couple of the images. Look for the "Resolution:" and "Print size:" lines near the beginning of that output.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.