Get ImageWidth and Height from Metadata to EXIF

Started by moltisanti, March 23, 2018, 09:30:41 AM

Previous topic - Next topic

moltisanti

I have a folder with subfolders containing multiple images. Most of them already have Geotags, but for some GPS was turned off, so there is no EXIF.
From a csv-file I already managed to write Long/Lat-Values in EXIF with exiftool.

To being able to upload them as .kml/.kmz with an attached PopUp-Image I found out the EXIF also needs to include ImageWidth and ImageHeight (otherwise Scripts or Programms like Mapollage just process the files with the regular EXIF). In their Metadata (f.ex. if I open Properties in Windows Explorer) the Images without EXIF have values for their size, f.ex. Width: 1400, Height: 1080.

Is there a way to copy/write these values from the General Metadata in the EXIF with the help of exiftool (f.ex. by creating tags)? 

I'm not very experienced in programming so I didn't find a suitable script to do is automatically.

Thanks already for the help!

StarGeek

Try the command in this post
https://exiftool.org/forum/index.php/topic,2088.msg9169.html#msg9169
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

moltisanti

Worked perfectly! Thank you very much for the quick help!