ExifTool Forum

ExifTool => Developers => Topic started by: tadej on November 04, 2021, 05:24:11 PM

Title: Transfer Existing Exif Data to another JPG
Post by: tadej on November 04, 2021, 05:24:11 PM
Hi,
Sometimes it is good to have just a portion of the original image (area of interest) and save that as a new image.
I am wondering if there is any chance for an easy way to transfer/write all (or most relevant ones) Exif tags found in the original image to a new (cropped) image?
Sure, the new image size tags should reflect the new width/height. The Thumbnail image can be ignored.
Title: Re: Transfer Existing Exif Data to another JPG
Post by: StarGeek on November 04, 2021, 06:27:06 PM
See the second example under Copying Examples (https://exiftool.org/exiftool_pod.html#exiftool--TagsFromFile-src.jpg--all:all-dst.jpg). That will copy all EXIF, IPTC IIM/Legacy, and XMP (IPTC core/ext) tags that exiftool can copy.
Title: Re: Transfer Existing Exif Data to another JPG
Post by: tadej on November 17, 2021, 12:57:27 PM
Hi, the suggestion reads like a magic touch. Thanks.  :)
Title: Re: Transfer Existing Exif Data to another JPG
Post by: Phil Harvey on November 17, 2021, 01:07:14 PM
@StarGeek: How do you find the link anchors in the documentation so (seemingly) easily?

- Phil
Title: Re: Transfer Existing Exif Data to another JPG
Post by: StarGeek on November 17, 2021, 04:43:25 PM
Quote from: Phil Harvey on November 17, 2021, 01:07:14 PM
@StarGeek: How do you find the link anchors in the documentation so (seemingly) easily?

Any time I have to look one up, I save it in my clipboard history program (https://ditto-cp.sourceforge.io/).

(https://i.imgur.com/UZIVS6u.png)

Then I just have to type the word "option" and the actual option and it's ready to paste into the post.
Title: Re: Transfer Existing Exif Data to another JPG
Post by: Phil Harvey on November 17, 2021, 08:55:10 PM
@StarGeek: Wow, that's not easy. :P

I thought maybe you used some anchor display add-on, like this (http://=https://chrome.google.com/webstore/detail/display-anchors/poahndpaaanbpbeafbkploiobpiiieko?hl=en), but that was for Chrome, which I don't use.

- Phil
Title: Re: Transfer Existing Exif Data to another JPG
Post by: StarGeek on November 17, 2021, 09:47:30 PM
I have a Display Anchor extension as well.  That's how I get the links in the first place.  Once grabbed, into the clipboard history they go for the next time it's needed.

I also have a short script that coverts these BBCode links into the link format used on StackExchange and Reddit.
Title: Re: Transfer Existing Exif Data to another JPG
Post by: Phil Harvey on November 18, 2021, 08:33:30 AM
Nice.