Page 1 of 1

Clipping an image along a path

Posted: 2012-04-20T08:42:40-07:00
by MatthewDuplantis
List,

Ok...I have an image, and I have a path inside the image that I would like to extract out. Can you show me via some example command-line code how to define the path for the image...then extract that section out...while maintaining the dimensions of the original image? My path is not a standard geometric shape each time...but, it is a polygon. I have a second image that is the same dimensions as the first...but, I want to extract a section of the first that changes, dynamically, and composite that extraction with the second. All I need help with is how to extract the polygon from the first image while maintaining the dimensions of the first image...because the first image has a transparent background.

Thanks in advance...
Matthew Duplantis

Re: Clipping an image along a path

Posted: 2012-04-20T09:59:45-07:00
by fmw42
I don't know the answer as I don't use them. But a search of the archives has the following: viewtopic.php?f=1&t=19392&p=75998&hilit ... ath#p75998

So it would appear that you could extract that info from the verbose information for the image.