Page 1 of 1

how to copy a clipping path

Posted: 2009-11-26T04:18:58-07:00
by flopppy
Hello!

Is there a way to use ImageMagick to copy a clipping path from one image (white filled one, grayscale) to another (cmyk or rgb)?

Re: how to copy a clipping path

Posted: 2009-11-26T18:33:38-07:00
by anthony
The clipping path is image meta data that is attached to a specific image.

You can copy the actual pixels from on image into another (keeping its meta-data) by using compose,
with a -extent or -crop on the destination (meta-data preserving) image to resize it first.

Remember it is the 'destination' or 'background' image that has the meta-data preserved.