How to reduce number of the commands lines
Posted: 2019-08-17T08:14:06-07:00
New to imageMacgicK command lines.
Have four commands, want to combine them to one command (or reduce the number as many as possible). The purpose: avoid writing too many output files to disk.
What needed is the maked-final.png file
Have four commands, want to combine them to one command (or reduce the number as many as possible). The purpose: avoid writing too many output files to disk.
What needed is the maked-final.png file
Code: Select all
convert tmp2.png -background transparent -extent 600x600 mask1.png -composite masked-up.png
composite -compose Dst_Over -geometry +0+350 tmp3.png mask2.png masked-bottom.png
convert masked-bottom.png -fuzz 10% -transparent black masked-bottom-trans.png
convert masked-up.png masked-bottom-trans.png -composite mask3.png -composite masked-final.png