Re: How to optimize this sequence of operations to produce one output image

Fred Weinhaus <[email protected]>
Newsgroups gmane.comp.video.image-magick.user
Message-ID <p06240801c7acf244ba0a@[192.168.1.2]>
assuming you have a current version of IM at least 6.5.3-4, then you 
can replace the composite -dissolve with convert -compose dissolve 
... -composite and then chain all the converts as follows:


convert background.png \
\( layer-1.png -transparent white \) \
-compose dissolve -set option:compose:args 50,100 -composite \
\( layer-2.png -transparent white \) \
-compose dissolve -set option:compose:args 50,100 -composite \
\( layer-3.png -transparent white \) \
-compose dissolve -set option:compose:args 50,100 -composite \
\( top.png -transparent white \) \
-compose over -layers merge out.png
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.