ExifTool Forum

General => Metadata => Topic started by: Fedor72 on December 03, 2020, 09:48:41 AM

Title: How to make a complete copy of a photo
Post by: Fedor72 on December 03, 2020, 09:48:41 AM
Hello.

The task is: there is a file clear.jpg cleared of metadata. You need to copy absolutely all the metadata from the src.jpg file into it so that they do not differ in any way in terms of metadata.

Tried copying metadata with "ET gui". The differences are palpable when exporting metadata.


Is it possible to make identical files in terms of metadata?
I would be very grateful for your help.
Title: Re: How to make a complete copy of a photo
Post by: StarGeek on December 03, 2020, 10:09:56 AM
Quote from: Fedor72 on December 03, 2020, 09:48:41 AM
Is it possible to make identical files in terms of metadata?

You could copy any embedded groups as blocks
exiftool -TagsFromFile Source.jpg -IPTC -EXIF -XMP Clear.jpg

Though there may be other blocks you have to copy.
Title: Re: How to make a complete copy of a photo
Post by: Fedor72 on December 04, 2020, 04:22:59 AM
Copied almost perfectly.

Thank you very much!

Can you please tell me, in addition to these tags, what else can I add so that the copy is as complete as possible?
Title: Re: How to make a complete copy of a photo
Post by: Phil Harvey on December 04, 2020, 07:00:44 AM
You could also add -jfif:all and -trailer to copy the JFIF segment and any JPG trailer.

- Phil
Title: Re: How to make a complete copy of a photo
Post by: Fedor72 on December 04, 2020, 08:23:54 AM
Thank you