Page 1 of 1

Changes in clipping path behavior?

Posted: 2011-07-21T03:03:06-07:00
by cs_rol
Hi!
I'm using ImageMagick as a library in my own Conversion-tool. I just updated from 6.5.2 to 6.7.1-0 and i noticed changes in how clipping paths would be handled.

In the old version clipping paths would be applied automatically wheres i have to do it on my own now. Is that correct?
How would I write the code if i wanted to convert e.g. a tiff with clipping paths to an png which is transparent on the cut-out parts?

thanks for your help!

richard

Re: Changes in clipping path behavior?

Posted: 2011-07-21T17:36:37-07:00
by anthony
Clipping paths is an 'extra' bit of meta-data that IM has always ignored unless you tell IM otherwise. That has never changes.

See IM Examples Masking. Clipping Masks
http://www.imagemagick.org/Usage/maskin ... ping_masks

Yes it is only minimal notes, as I only recently started to explore this area of IM. Internally a clipping path does not even modify an image, It does not add transparent, or do anything at all to an image. All it does is make some parts 'unwritable' so that later operations can not change them. Clip is also boolean. that it is will not make some edge pixels 'partly writable' as a normal write mask does, it is purely a on/off mask.

For how you can use it to make the external parts of the clip, transparent see the forum discussion
Cleaning up noise around text.
http://www.imagemagick.org/Usage/forum_ ... =1&t=18707