Tiff Preview removed when writing Keywords to EPS

Started by IanMcP, January 16, 2014, 07:21:30 AM

Previous topic - Next topic

IanMcP

Hi,

I have been using Exiftool for a few years to add metadata to a custom namespace in PDFs.

I now need to write a similar utility that will write job data to EPS files in the Keywords tag.

Using the example from the documentation;
exiftool -keywords=EXIF -keywords=editor test.eps
results in a duplicate file with no icon preview, and if I use the -overwrite_original flag, this writes the Keywords, but removes the Icon preview from the current file.

This file will be forwarded onto the client for inclusion in some cataloging application.
Is this only an Icon issue, or is the preview being deleted and might cause problems previewing the file?
Is there a flag that will preserve the preview?

I am running Exiftool 9.46 via shell script in Applescript. Mac OSX 10.6.8
Many Thanks

Ian

Phil Harvey

Hi Ian,

I think this is what you are looking for:

       -overwrite_original_in_place
            Similar to -overwrite_original except that an extra step is added
            to allow the original file attributes to be preserved.  For
            example, on a Mac this causes the original file creation date,
            type, creator, label color, icon, Finder tags and hard links to
            the file to be preserved (but note that the Mac OS resource fork
            is always preserved unless specifically deleted with
            "-rsrc:all=").  This is implemented by opening the original file
            in update mode and replacing its data with a copy of a temporary
            file before deleting the temporary.  The extra step results in
            slower performance, so the -overwrite_original option should be
            used instead unless necessary.


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