How to make a complete copy of a photo

Started by Fedor72, December 03, 2020, 09:48:41 AM

Previous topic - Next topic

Fedor72

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.

StarGeek

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.
* 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).

Fedor72

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?

Phil Harvey

You could also add -jfif:all and -trailer to copy the JFIF segment and any JPG trailer.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).