Code: Select all
convert z1.gif -morphology Hit-and-Miss '3x3:1,0,1 -,1,- -,-,-' -negate -transparent white hmt_right2.gif ;convert z1.gif hmt_right2x.gif -composite z2.gif
reduce this two command to one command
Code: Select all
convert z1.gif -morphology Hit-and-Miss '3x3:1,0,1 -,1,- -,-,-' -negate -transparent white hmt_right2.gif ;convert z1.gif hmt_right2x.gif -composite z2.gif
One of the simplest ways to combine commands is by isolating the various parts inside parentheses. Here's an example using your commands...
Code: Select all
convert z1.gif \( -clone 0--1 -morphology Hit-and-Miss '3x3:1,0,1 -,1,- -,-,-' -negate -transparent white \) -composite z2.gif
Code: Select all
convert z1.gif -morphology Hit-and-Miss '3x3:1,0,1 -,1,- -,-,-' -negate -transparent white hmt_right2.gif
convert z1.gif hmt_right2x.gif -composite z2.gif
Code: Select all
convert z1.gif \( +clone -morphology Hit-and-Miss '3x3:1,0,1 -,1,- -,-,-' -negate -transparent white \) -composite z2.gif