Hot to get Photoshop paths count in JPG file by command line script

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
michal_PL
Posts: 1
Joined: 2018-05-07T05:15:24-07:00
Authentication code: 1152

Hot to get Photoshop paths count in JPG file by command line script

Post by michal_PL »

My test file contains two paths, Path 1 and Path 2. File created in Photoshop and saved as jpg.
I use
c:\magic\magick.exe identify -verbose ClipPath d:\s2.jpg
But it gives me only information about one path. Or I don't recognise them. Is there any way to get information: how many paths is saved in jpg? It doesn't have to be imagemagic but I can't use Phostoshop because somebody wants it to be very fast (he processes many jpg files). Command line is for me the best (and using .bat file).
It gives me (not relevant outer and middle lines I removed):

Code: Select all

    
......    
Clipping path:
<?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1200">
<g>
<path fill-rule="evenodd" style="fill:#000000;stroke:#000000;stroke-width:0;stro
ke-antialiasing:false" d="
M 1304.5 588
L 1272.5 586
L 990 700
C 990 700 984.5 713.5 973 722
C 961.5 730.5 957 734.5 949.5 734
...........
L 1133 293.5
L 1133.5 248 Z
"/>
</g>
</svg>
.........
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Hot to get Photoshop paths count in JPG file by command line script

Post by fmw42 »

Moved to User's forum, since this post has nothing to do with Fred's Scripts.
Post Reply