What I try to do is convert a large image to a smaller one with size max 700x700 pixels and set to 72DPI.
The original image have the following properties:
Code: Select all
Geometry: 7323x5315
...
Resolution: 300x300
Units: PixelsPerInch
...
X Resolution: 3000000/10000
Y Resolution: 3000000/10000
Code: Select all
convert GT6030.1.jpg -filter Lanczos -resize 700x700 -quality 85 -density 72x72 GT6030_out.jpg
Code: Select all
identify -verbose |grep Resolution
6.2.9-8 and 6.3.0-7 :
Code: Select all
Resolution: 300x300
X Resolution: 3000000/10000
Y Resolution: 3000000/10000
Resolution Unit: 2
Code: Select all
Resolution: 72x72
Code: Select all
Resolution: 72x72
Exif:ResolutionUnit: 2
Exif:XResolution: 72/1
Exif:YResolution: 72/1
Code: Select all
Resolution: 300x300
Exif:ResolutionUnit: 2
Exif:XResolution: 72/1
Exif:YResolution: 72/1
Code: Select all
Resolution: 300x300
Exif:ResolutionUnit: 2
Exif:XResolution: 72/10000
Exif:YResolution: 72/10000
Code: Select all
Resolution: 300x300
exif:ResolutionUnit: 2
exif:XResolution: 72/10000
exif:YResolution: 72/10000
Code: Select all
Resolution: 0.0072x0.0072
exif:ResolutionUnit: 2
exif:XResolution: 72/10000
exif:YResolution: 72/10000
Code: Select all
Resolution: 0.03x0.03
exif:ResolutionUnit: 2
exif:XResolution: 300/10000
exif:YResolution: 300/10000
Code: Select all
Resolution: 0.03x300
exif:ResolutionUnit: 2
exif:XResolution: 300/10000
exif:YResolution: 300/1
Code: Select all
Resolution: 0.0072x72
exif:ResolutionUnit: 2
exif:XResolution: 72/10000
exif:YResolution: 72/1