I have an image
Image.png. How do I use the ImageMagick command
convert to make this file into a
Image.jpg file with the following requirements:
- File size is 200~500 kb.
- Resolution in not less than 450 dpi
- Image size 35 x 45 mm
Edit: These are the exact requirements for making some documents through electronic government. IT isn't a problem that the quality will deteriorate, because the image is needed just for the process of making the document (not for the document itself).
I'm not entirely clear in understanding what these requirements mean with respect to a file. I figured out how to get
$ convert Image.png Image.jpg
Also, I found out how to set some specific DPI:
$ convert -units PixelsPerInch Image.png -density 450 Image.jpg
However, I'm not sure about millimeters, and how it's determined in an image file.