problem writing xmp metadata to eps

Started by v.svetoslavov, April 18, 2013, 05:15:32 AM

Previous topic - Next topic

v.svetoslavov

Hi
I have a problem writing xmp metadata to a certain XMP file

command:
exiftool -xmp:city=Kingston myFile.eps

Output
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - myFile.eps
    0 image files updated
    1 image files unchanged


Version
8.60
OS
KUbuntu Linux x86_64

I also tried with -m, but then I got a very weird error message
$ exiftool -m -xmp:city=Kingston myFile.eps
Warning: Can't write XMP to Illustrator 8 or older EPS files - myFile.eps
    0 image files updated
    1 image files unchanged


Another try - with verbose shows that there is Exif information if the file
$ exiftool -xmp -verbose myFile.eps

  ExifToolVersion = 8.60
  FileName = myFile.eps
  Directory = .
  FileSize = 1469422
  FileModifyDate = 1366275941
  FilePermissions = 33204
  FileType = EPS
  MIMEType = application/postscript
  TIFFPreview = II*X...................................................................[snip]
  ExifByteOrder = II
  + [IFD0 directory with 13 entries]
  | 0)  SubfileType = 0
  | 1)  ImageWidth = 738
  | 2)  ImageHeight = 567
  | 3)  BitsPerSample = 8
  | 4)  Compression = 1
  | 5)  PhotometricInterpretation = 3
  | 6)  SamplesPerPixel = 2
  | 7)  PlanarConfiguration = 1
  | 8)  StripOffsets = 12
  | 9)  StripByteCounts = 836892
  | 10) ColorMap = 33333333333333333333333333333333333333333333333333333333333333333333[snip]
  | 11) ExtraSamples = 1
  | 12) PhotoshopSettings (SubDirectory) -->
  | + [Photoshop directory, 294 bytes]
  | | Photoshop_0x07d0 = ......,...<Y..Z...x.!........L...3.......................%...M[snip]
  | | ClippingPathName = .Path
  Creator = Adobe Illustrator(R) 8.0
  For = ARRAY(0x24348a0)
  Title = Floral Background.eps
  CreateDate = 5/1/2007 4:55 AM
  BoundingBox = -87 -1 652 566
  Title = Adobe Illustrator (R) Version 5.0 Level 2 Emulation
  Version = 1.2 0
  CreateDate = ARRAY(0x2208e68)
  Copyright = (C) 1987-1996 Adobe Systems Incorporated All Rights Reserved
  Title = AGM Gradient Procset
  Version = 1.0 0
  CreateDate = ARRAY(0x2419e90)
  Copyright = (C) 1987-1996 Adobe Systems Incorporated All Rights Reserved
  Title = AGM Gradient Procset
  Version = 1.0 0
  CreateDate = ARRAY(0x240d208)
  Copyright = (C) 1987-1996 Adobe Systems Incorporated All Rights Reserved
  Title = Adobe Illustrator (R) Version 8.0 Full Prolog
  Version = 1.3 0
  CreateDate = ARRAY(0x240d4f0)
  Copyright = (C) 1987-1998 Adobe Systems Incorporated All Rights Reserved
  Title = Writing System Operators
  Version = 2.0 8
  CreateDate = ARRAY(0x240d6b8)
  Copyright = (C) 1992-1996 Adobe Systems Incorporated All Rights Reserved
  Title = Adobe Illustrator 8 Shading Procset
  Version = 1.0 0
  CreateDate = ARRAY(0x240d8b0)
  Copyright = (C) 1987-1997 Adobe Systems Incorporated All Rights Reserved

Phil Harvey

Sorry, but if ExifTool uses the standard technique to embed XMP in older Illustrator EPS files then Illustrator can no longer read the file.  For this reason, I have disabled writing of XMP to these files.

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

v.svetoslavov

Is there any way to "force" this? I.e. if we assume Illustrator 8 is not used any more?

Phil Harvey

You could try manually changing the "%!PS-Adobe-3.0" line in your file to "%!PS-Adobe-3.2".  ExifTool should then write the file, but I can't say if this will cause other problems.

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

v.svetoslavov

$ exiftool -xmp:city=Kingston myFile2.eps

Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - myFile2.eps
Error: [minor] Document does not conform to DSC spec. Metadata may be unreadable by other apps - myFile2.eps
    0 image files updated
    1 files weren't updated due to errors

Phil Harvey

Yes, more problems.  You can continue to ignore them with -m if you're reckless enough. :P

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