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 one.jpg two.jpg -compose over \
-alpha off -compose copy_opacity -composite three.jpg \
+swap +repage -gravity center -compose over -composite output.jpg
I'm trying to convert above CLI into C. But I don't understand the meaning of it. Can anyone please explain about it?
This is what I understood from it.
First perform alpha off and compose over on one.jpg and two.jpg and then merge them using copy_opacity composite.
Swap three.jpg with newimage then apply gravity on them and finally merge them using over composite and generate the output.jpg
rpatelob wrote: ↑2017-05-28T22:38:42-07:00
I was saving image as jpeg using first CLI so it would remove transparency.
That's not a great way of removing transparency, due to the lossy conversion to JPEG. There are ways of removing transparency via "-alpha " options, but if you like the simplicity of converting to an opaque image format, use PPM for that.