Imported paths are not completely overwritten

Started by Nico99, April 10, 2017, 08:53:10 AM

Previous topic - Next topic

Nico99

Hi Phil
imagine the following situation:

I have an image that contains the following paths:

  • Path7d0 - named "Path1"
  • Path7d1 - named "Path2"
  • Path7d2 - named "Path3"
then I have an exv file that contains the following paths:

  • Path7d0 - named "Path2"
  • Path7d1 - named "Path3"

If I use the following command:
exiftool -config config/photoshop_paths.config -overwrite_original -tagsfromfile mynewpaths.exv -allpaths# myimage.tif

to import the path listed in the exv file into the image, the result will be an image with the following list of paths:


  • Path7d0 - named "Path2" <-- imported
  • Path7d1 - named "Path3" <-- imported
  • Path7d2 - named "Path3" <-- originally in the image

The consequence of this is that there are two paths with the same name (Path3), situation not permitted in PS. A part from this, my expectation using -overwrite_original is to get an image with only the paths I've imported.

To solve this problem I would suggest to remove all the paths from the target image before importing the new list of paths.
What do you think ?
Thanks
Nico



Phil Harvey

#1
Hi Niko,

If you want to delete existing paths then copy paths from another file, do this:

exiftool -config config/photoshop_paths.config -overwrite_original -allpaths= -tagsfromfile mynewpaths.exv -allpaths# myimage.tif

But you should also copy the OriginPathInfo when copying paths, so the command should be:

exiftool -config config/photoshop_paths.config -overwrite_original -allpaths= -tagsfromfile mynewpaths.exv -allpaths# -originpathinfo myimage.tif

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

Nico99