ExifTool Forum

ExifTool => Newbies => Topic started by: minhnp on June 02, 2019, 06:52:31 AM

Title: Getting Clipping path name from tif or psd image
Post by: minhnp on June 02, 2019, 06:52:31 AM
I use the latest exiftool version to get my clipping path name out of TIF file but it returns nothing.
I tried command: exiftool -PhotoshopPaths 162547-100_back.tif or even exiftool -v Photoshop:All 162547-100_back.tif but there's no information of any path

Please help!

You can get my file here: https://drive.google.com/open?id=19A3ySKGBpdC-EVisQIpVx32aWcn3r9JC
Title: Re: Getting Clipping path name from tif or psd image
Post by: Phil Harvey on June 02, 2019, 01:16:10 PM
See the first example in this config file (https://github.com/exiftool/exiftool/blob/master/config_files/photoshop_paths.config).

- Phil
Title: Re: Getting Clipping path name from tif or psd image
Post by: minhnp on June 02, 2019, 11:00:29 PM
Thank you, Phil!
Title: Re: Getting Clipping path name from tif or psd image
Post by: Stephen Marsh on June 04, 2019, 08:02:26 AM
I believe that I have previously used -clippingpathname for a saved/clipping path, and -workingpath for an unsaved work path, however, this was in the context of "doing something" and not just returning the name.

Another couple of path tag examples:

Conditionally Process If an image has a Photoshop work path or a saved path/clipping path entry, moving the processed files to new sub-folders within the source folder:

exiftool -if '$workingpath' -directory=%d'Photoshop Work Paths' -execute -if '$originpathinfo' -directory=%d'Photoshop Saved Paths' -common_args -u -r 'FILEorDIR'
Title: Re: Getting Clipping path name from tif or psd image
Post by: nhave on September 30, 2020, 07:45:53 AM
Quote from: Phil Harvey on June 02, 2019, 01:16:10 PM
See the first example in this config file (https://github.com/exiftool/exiftool/blob/master/config_files/photoshop_paths.config).

Oh yes! This is the most beautiful thing I have seen in days! Thanks! ImageMagick is apparently unable to show this.

@Phil - in Photoshop, one of multiple paths in a JPG can be the "active" path. This information is stored in the image too, as metadata I guess. I wonder if it's possible to extract this with exiftool?

I have attached an image with two paths "Path 1" and "Snyd". The first one is the active path.

Thanks,
Nik
Title: Re: Getting Clipping path name from tif or psd image
Post by: Phil Harvey on September 30, 2020, 08:31:34 AM
Hi Nik,

Try this:

exiftool -clippingpathname FILE

- Phil
Title: Re: Getting Clipping path name from tif or psd image
Post by: nhave on October 01, 2020, 12:30:26 PM
Thanks, exactly what I was looking for! 👍
Title: Re: Getting Clipping path name from tif or psd image
Post by: nhave on April 29, 2021, 04:23:39 AM
Hi Phil,

As a follow-up to this great feature:

Is it possible in exiftool to write / set a path as an active clipping path?

So this reads the clipping path name:

exiftool -clippingpathname FILE

And I'm looking for a way to activate an existing path as clipping path.
Title: Re: Getting Clipping path name from tif or psd image
Post by: Phil Harvey on April 29, 2021, 01:45:24 PM
No, sorry.  ExifTool doesn't have the ability to write clipping path information.

- Phil