ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Nico99 on April 10, 2017, 08:53:10 AM

Title: Imported paths are not completely overwritten
Post by: Nico99 on April 10, 2017, 08:53:10 AM
Hi Phil
imagine the following situation:

I have an image that contains the following paths:
then I have an exv file that contains the following paths:

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:


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


Title: Re: Imported paths are not completely overwritten
Post by: Phil Harvey on April 10, 2017, 08:57:55 AM
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
Title: Re: Imported paths are not completely overwritten
Post by: Nico99 on April 10, 2017, 11:13:53 AM
Hi Phil
it works! Thanks a lot.
Nico