News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Updating image sizes

Started by Archive, May 12, 2010, 08:54:12 AM

Previous topic - Next topic

Archive

[Originally posted by johnzeman on 2007-11-21 23:23:13-08]

First I'd like to thank you for this marvelous tool, it is wonderful!

Now my question.  Is there a way to automatically update the image size stored in the ExifImageWidth and ExifImageLength tags to reflect the actual image dimensions?  I find this useful after cropping an original image.

Many thanks,

John

Archive

[Originally posted by exiftool on 2007-11-22 12:27:59-08]

Hi John,

Of course this is possible... https://exiftool.org/forum/Smileys/default/smiley.gif" alt="Smiley" border="0" />

Code:
exiftool "-imagewidth>exifimagewidth" "-imageheight>exifimagelength" FILE

- Phil

Archive

[Originally posted by johnzeman on 2007-11-22 13:57:12-08]

Beautiful!

Thanks Phil!  And happy holidays to you and yours! https://exiftool.org/forum/Smileys/default/smiley.gif" alt="Smiley" border="0" />

John

Archive

[Originally posted by exiftool on 2007-11-22 14:08:08-08]

Hi John,

Thanks!  That would be early Christmas wishes I assume, because
Canadian Thanksgiving was Oct. 8.   https://exiftool.org/forum/Smileys/default/smiley.gif" alt="Smiley" border="0" />

- Phil