4
$ convert original.jpg -resize 50% test.jpg

$ exiftool test.jpg 
...
Exif Image Width                : 1200
Exif Image Height               : 1600
Image Width                     : 600
Image Height                    : 800
Image Size                      : 600x800

The size of original.jpg is 1200 x 1600.

After resizing the image by half, why are the Exif Image Width and Exif Image Height not the same as Image Width and Image Height?

Thanks.

Tim
  • 17,743

1 Answers1

4

The Convert command doesn't modify the metadata. The Exif tags still hold the info from the previous image. You could fix that using this ExifTool command:

exiftool "-ExifImageHeight<ImageHeight" "-ExifImageWidth<ImageWidth" test.jpg 

If you're not using windows, change double quotes to single quotes.

..

Gringo Suave
  • 1,394
StarGeek
  • 1,644