ConvertTo-Jpeg icon indicating copy to clipboard operation
ConvertTo-Jpeg copied to clipboard

EXIF data

Open williamg97 opened this issue 5 years ago • 4 comments

Any way to copy the EXIF data across (date taken, GPS location etc)?

williamg97 avatar Jun 02 '19 15:06 williamg97

I’d like to, and I’ve looked into this before. You might expect there is a simple way, but it seemed to me at the time that WIC did not make this easy. Instead, it seemed that the code would need to extract values individually by multiple names/aliases and possibly convert them along the way. I’ve done something similar on a previous project and it was quite messy. If I can find an efficient way to do this here, I will add it.

DavidAnson avatar Jun 02 '19 16:06 DavidAnson

Exiftool supports r/w for both heic/heif and jpg.

https://www.sno.phy.queensu.ca/~phil/exiftool/#supported

JohnStefanko avatar Jul 27 '19 23:07 JohnStefanko

@JohnStefanko Good find. It's simple enough (though inefficient and kludgy) to add a call to exiftool post-conversion. I'm dealing with this due to iOS storing images as HEIC, and using OneDrive for cloud storage. On my Windows systems, working with HEIC is terrible (e.g. the Windows Photos app refuses to save changes to images, like rotation or crop, even with MS's HEIF/HEIC add-on). I'm using this script and exiftool to find all HEIC files, convert them to jpeg, apply the EXIF metadata, and delete the original. Unfortunately I found the iOS setting to store as jpeg months after many images were taken. What a pain!

JohnDelisle avatar Nov 17 '20 19:11 JohnDelisle

@JohnStefanko Good find. It's simple enough (though inefficient and kludgy) to add a call to exiftool post-conversion. I'm dealing with this due to iOS storing images as HEIC, and using OneDrive for cloud storage. On my Windows systems, working with HEIC is terrible (e.g. the Windows Photos app refuses to save changes to images, like rotation or crop, even with MS's HEIF/HEIC add-on). I'm using this script and exiftool to find all HEIC files, convert them to jpeg, apply the EXIF metadata, and delete the original. Unfortunately I found the iOS setting to store as jpeg months after many images were taken. What a pain!

I wish I would have know that this issue existed before I modified my workflow. Thankfully, I found the same setting you referred to in the iPhone.

For anyone else reading this, I know the free CopyTrans program will convert AND retain EXIF data. Unfortunately, I haven't found a way to automate that conversion process so back to JPG I go.

ALittleOfEverything88 avatar Sep 22 '21 22:09 ALittleOfEverything88