[Image-SIG] How to "crop" along a mask?

Alec Bennett wrybread at gmail.com
Sun Jan 24 23:56:42 CET 2010


I'm trying to take a group of pictures and give them rounded edges. I have a
source image (a rectangle with rounded edges, transparent PNG) and I'd like
to use this as a template. All the target images would become transparent
wherever this source image is transparent.

In other words, I'd be making the same region of the target image
transparent as is transparent in the source image.

Any tips for accomplishing this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100124/6c37cd38/attachment.htm>


More information about the Image-SIG mailing list