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.

I have these 2 JPEG's and I join them into a single pdf with the following command:

convert -compress JPEG -quality 90 -page A4 1.jpg 2.jpg doc.pdf

However the resulting document's size is only 50x71 mm, you can see it on the following image. This happens with every -page format. It works well if I don't specify a -page.

Full size capture

(No, this capture is not scaled down to fit in the question).

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I don't know why this happens, but it turns out that I have to also specify a pixel density (DPI) using the -density command:

convert -compress JPEG -quality 90 -page A4 -density 72 1.jpg 2.jpg doc.pdf

I had to choose 72 because that was the only density that gave me the proper A4 size (210x297). Manually specifying 300 would give me the same small document: 300 is the DPI with which I scanned my images.

share|improve this answer

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.