Page 1 of 1

Get coordinates x,y of a clipping path #1

Posted: 2019-05-23T09:44:38-07:00
by shuw
I try to obtain the coordinates of a clipping path in an image.
How is that possible?

Re: Get coordinates x,y of a clipping path #1

Posted: 2019-05-23T09:58:25-07:00
by fmw42
Often it will be listed as SVG text in the

Code: Select all

identify -verbose image.suffix. 


If the image is TIF, it can be extracted from the 8bim file as follows:

Code: Select all

identify -format '%[8BIM:1999,2998:#1]' image_clip.tiff

Re: Get coordinates x,y of a clipping path #1

Posted: 2019-05-24T06:47:06-07:00
by shuw
fmw42 wrote: 2019-05-23T09:58:25-07:00 Often it will be listed as SVG text in the

Code: Select all

identify -verbose image.suffix. 


If the image is TIF, it can be extracted from the 8bim file as follows:

Code: Select all

identify -format '%[8BIM:1999,2998:#1]' image_clip.tiff
Thank you, I was aware of that. I tried to get the same result using the PHP Class.
I was able using Imagick::identifyImage (true) and extracted the svg string portion of the appended rawOutput.