Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using this command

mogrify -format pdf -page a5  iguana2.jpg 

to convert a jpg file into a pdf. The problem is that the result has a white border. I'd like the image to full fill the a5 page (it's ok if borders of the image are lost).

original image result

share|improve this question

If you don't have to use IM, I suggest using LaTeX to realize this. The following tex code is an example.



    %\includegraphics[width=1.0\columnwidth]{example.jpg} # if the width > height
    \includegraphics[height=1.0\paperheight]{example.jpg} # if the height > width


The code is very easy to understand. Use latex compile it.

share|improve this answer

Your Answer


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.