Changes in clipping path behavior?

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
cs_rol
Posts: 22
Joined: 2007-01-16T04:40:08-07:00

Changes in clipping path behavior?

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Changes in clipping path behavior?

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply