how to copy a clipping path

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
flopppy

how to copy a clipping path

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

Re: how to copy a clipping path

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