Adding IPTC metadata from jpg to eps

Started by Akaz, May 25, 2019, 11:36:24 PM

Previous topic - Next topic

Akaz

Hi, I'd like to copypaste IPTC metadata (keywords, description and title) from jpg file to EPS file.
The EPS file is created in Illustrator.

I have tried this command:
Quoteexiftool -tagsfromfile %d%f.jpg -all:all -overwrite_original *.eps
But I get warning saying:
Warning: [minor] IFD0 BitsPerSample should have 2 values - [filename].eps

What can be the possible solution for it?

Thanks in advance.

Hayo Baan

Have you already tried adding -m to the command? That'll ignore the minor error.
Hayo Baan – Photography
Web: www.hayobaan.nl

Akaz

Quote from: Hayo Baan on May 26, 2019, 03:40:47 AM
Have you already tried adding -m to the command? That'll ignore the minor error.

ok Tried now and getting this warning:
Warning: Can't write XMP to PostScript-format Illustrator files - [filename].eps

Hayo Baan

Right, that error is because exiftool can't write xmp to eps. That you should be able to prevent by adding --xmp after the -all:all.
Hayo Baan – Photography
Web: www.hayobaan.nl

Akaz

Still getting same error.
Warning: Can't write XMP to PostScript-format Illustrator files - [filename].eps

I used this command:
Quoteexiftool -tagsfromfile %d%f.jpg -all:all -xmp -overwrite_original *.eps -m

I am little nerd when it comes with using syntax. Let me know if I am moving correctly and this is the right command I am using.

Phil Harvey

ExifTool writes XMP to EPS files according to Adobe's XMP specification.

The problem is that Adobe uses a different technique for Illustrator EPS files for some reason, and Adobe Illustrator doesn't like it when XMP is written according to the specification.  I haven't had the motivation to try to figure out why.

- 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 ($).

Akaz

Quote from: Phil Harvey on May 26, 2019, 06:33:01 AM
ExifTool writes XMP to EPS files according to Adobe's XMP specification.

The problem is that Adobe uses a different technique for Illustrator EPS files for some reason, and Adobe Illustrator doesn't like it when XMP is written according to the specification.  I haven't had the motivation to try to figure out why.

- Phil

Thanks for your reply.

Its sad that they used different techniques for Illustrator EPS.
I wished it to possible, it will really reduce hours of my time.

Is there any other tool available which can help me do that?
Or if you can invest some time in figuring the solution, it will be really great.

Its a small request.

Hayo Baan

Quote from: Akaz on May 26, 2019, 06:25:50 AM
Still getting same error.
Warning: Can't write XMP to PostScript-format Illustrator files - [filename].eps

I used this command:
Quoteexiftool -tagsfromfile %d%f.jpg -all:all -xmp -overwrite_original *.eps -m

I am little nerd when it comes with using syntax. Let me know if I am moving correctly and this is the right command I am using.

Yakaz, that should have been a double minus in front of xmp --xmp not -xmp. This will exclude the xmp tags from being written (which isn't possible at the moment at least, if ever).
Hayo Baan – Photography
Web: www.hayobaan.nl

Akaz

Quote from: Hayo Baan on May 26, 2019, 07:52:40 AM
Yakaz, that should have been a double minus in front of xmp --xmp not -xmp. This will exclude the xmp tags from being written (which isn't possible at the moment at least, if ever).

Thank you sir, but alas its not working.  :(
Its all due to Adobe XMP's specifications for Illustrator EPS.

I am still searching for appropriate tool to do it, and no success till now.

Hayo Baan

Quote from: Akaz on May 26, 2019, 08:12:05 AM
Quote from: Hayo Baan on May 26, 2019, 07:52:40 AM
Yakaz, that should have been a double minus in front of xmp --xmp not -xmp. This will exclude the xmp tags from being written (which isn't possible at the moment at least, if ever).

Thank you sir, but alas its not working.  :(
Its all due to Adobe XMP's specifications for Illustrator EPS.

I am still searching for appropriate tool to do it, and no success till now.

Oops, sorry, it should have been --xmp:all :o
Hayo Baan – Photography
Web: www.hayobaan.nl

Akaz

Quote from: Hayo Baan on May 26, 2019, 08:35:06 AM
Oops, sorry, it should have been --xmp:all :o

Still the same error,
Warning: Can't write XMP to PostScript-format Illustrator files - [filename].eps

Hayo Baan

Hmm, that's odd. Can you post a small example eps file as well as a jpg you try to copy the metadata from?
Hayo Baan – Photography
Web: www.hayobaan.nl

Akaz

Quote from: Hayo Baan on May 27, 2019, 01:35:37 AM
Hmm, that's odd. Can you post a small example eps file as well as a jpg you try to copy the metadata from?

I have sent a test file in your PM with all the details

Hayo Baan

Thanks, but for me it works fine. There are two minor errors, but those don't stop the command from working:

$ exiftool -tagsfromfile %d%f.jpg -all:all --xmp:all TEST.eps
Warning: [minor] IFD0 BitsPerSample should have 2 values - TEST.eps
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - TEST.eps
    1 image files updated


Adding -m to ignore the minor errors gives a clean output:

$ exiftool -m -tagsfromfile %d%f.jpg -all:all --xmp:all TEST.eps
    1 image files updated


This is with exifTool 11.44, are your perhaps using an older version?
Hayo Baan – Photography
Web: www.hayobaan.nl

Akaz

Yes the command says the file is updated but when checking bridge it do not show.
I am using the latest version and used the code below.

exiftool -m -tagsfromfile %d%f.jpg -all:all --xmp:all *.eps