Getting Clipping path name from tif or psd image

Started by minhnp, June 02, 2019, 06:52:31 AM

Previous topic - Next topic

minhnp

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

Phil Harvey

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


Stephen Marsh

#3
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'

nhave

Quote from: Phil Harvey on June 02, 2019, 01:16:10 PM
See the first example in this config file.

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

Phil Harvey

Hi Nik,

Try this:

exiftool -clippingpathname FILE

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

nhave


nhave

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.

Phil Harvey

No, sorry.  ExifTool doesn't have the ability to write clipping path information.

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