Hot to get Photoshop paths count in JPG file by command line script
Posted: 2018-05-07T05:31:39-07:00
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):
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>
.........