Page 2 of 2

Re: compose and colorize images on blank canvas

Posted: 2019-04-23T09:12:03-07:00
by fmw42
In IM 7, "convert" is replaced by "magick". See https://imagemagick.org/script/porting.php#cli for difference between IM 6 and 7.

You are not using my latest command above. Try that.

For IM 7, use

Code: Select all

magick -size 300x300 canvas:transparent -depth 8 \
img/a_4_0.png -geometry +122+137 -compose over -composite \
\( img/b_4_0.png \( +clone -fill red -colorize 100% \) -compose multiply -composite \) -geometry +132+115 -compose over -composite \
\( img/c_4_1.png \( +clone -fill red -colorize 100% \) -compose multiply -composite \) -geometry +142+81 -compose over -composite \
img/d_4_0.png -geometry +133+116 -compose plus -composite \
img/e_4_1.png -geometry +143+82 -compose plus -composite \
img/f_4_1.png -geometry +147+54 -compose over -composite \
\( \( img/g_4_1.png -fill yellow -colorize 100% \) \
\( img/g_4_1.png -fuzz 7% -transparent black -channel alpha -blur 0x9 -level 50x100% +channel \) \
-compose over -compose copy_opacity -composite \) -geometry +125+36 -compose dst_over -composite \
img/result4.png
Image

Code: Select all

magick -size 300x300 canvas:transparent -depth 8 \
img/a_4_0.png -geometry +122+137 -compose over -composite \
\( img/b_4_0.png \( +clone -fill red -colorize 100% \) -compose multiply -composite \) -geometry +132+115 -compose over -composite \
\( img/c_4_1.png \( +clone -fill red -colorize 100% \) -compose multiply -composite \) -geometry +142+81 -compose over -composite \
img/d_4_0.png -geometry +133+116 -compose plus -composite \
img/e_4_1.png -geometry +143+82 -compose plus -composite \
img/f_4_1.png -geometry +147+54 -compose over -composite \
\( \( img/g_4_1.png -fill yellow -colorize 100% \) \
\( img/g_4_1.png -fuzz 7% -transparent black -channel alpha -blur 0x9 -level 50x100% +channel \) \
-compose over -compose copy_opacity -composite \) -geometry +125+36 -compose dst_over -composite \
-background skyblue -compose over -flatten \
img/result5.png
Image