Extending Path Coverage...?

Started by blue-j, December 16, 2021, 09:00:45 PM

Previous topic - Next topic

blue-j

Hey there!

Photoshop (and other apps) has three different types of paths.  One is a clipping path, another is a saved path ("normal"), and still another is a work path, which is a path in progress.  Presently, ExifTool identifies clipping paths and normal paths fine, but ignores work paths entirely.

There's a field photoshop:workingpath among unknowns, that looks promising...

https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_17587

I am also including a PSD file with all three kinds of paths for your review.  (The image is all white - no image really).  Also a screenshot.

Thank you so much for considering this!

- J

Phil Harvey

I'm not sure what you are asking for here.  This is what ExifTool currently extracts:

> exiftool PathSamples.psd -u "-*path*"
Working Path                    : .....???..?.%?.#??X?.AQl.0?cY>?0?cY>?0?cY>?..I?L.?.I?L.?.I?L.?..?&3?9.?&3?9.?&3?9
Origin Path Info                : ..null..keyRootDescriptorListVlLs.Objc.null..keyDescriptorListVlLs.Objc.null..keyShapeInvalidatedbool..keyOriginIndexlongObjc.null..keyOriginIndexlong.Objc.null..keyDescriptorListVlLs.Objc.null..keyShapeInvalidatedbool..keyOriginIndexlong
Clipping Path Name              : Clipping Path Sample


There is also a photoshop_paths.config file that will extract more from the paths.  What do you want to see?

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

blue-j

The config as it stands now ignores the working path, not only in gathering its data points, but in calculating the total path count, etc.

I'm hoping there might be a way to crack the data inside photoshop:workingpath I suppose?

- J

blue-j

We've figured this out here and are willing to share.  I'll send the updated paths config to you (Phil) via email for inclusion!

- J

blue-j

Phil, thank you for making this happen!  I apologize for not replying to your email - the work looks perfect!  : )

J

Phil Harvey

Great.  As I mentioned in the email, I've updated the distributed version of config_files/photoshop_paths.config to extract the WorkingPath, but this path isn't included in the PathCount, TotalPathPix and UniquePathPix totals, so it is different from the version I sent via email.

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

blue-j

Makes sense!  Working paths are generally considered works in progress, and should not count for almost anyone.  - J