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).
If you don't have to use IM, I suggest using LaTeX to realize this. The following tex code is an example.
The code is very easy to understand. Use