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?".
convert image.png \( -clone 0 rose.png -compose Over -composite \) \
\( shape.png \) -delete 0 -alpha off -compose copy_opacity -composite \
image.png +swap -gravity center -compose Over -composite output.png
i used the image.png two times. I am not able to use the clone because i have to delete it while applying shape.png
Is it okay to call the same image multiple times? or should i clone it? If i have to clone, how can i do this coding?
Last edited by agriz on 2016-06-25T00:51:32-07:00, edited 1 time in total.
Clone and mpr are two different ways of doing similar things, of using images in memory.
A clone can only use an image that is in the immediately outer list. You can't write a clone; you can only read a clone.
By contrast, an mpr has to be explicitly written before it can be used. Once it is written, it can be used anywhere after that in the same "convert" statement.