Odd behavior with "-smush" in IM 7.0.7-0
Posted: 2017-09-08T08:17:03-07:00
Using ImageMagick 7.0.7-0 Q16 x64 HDRI (or ImageMagick 6.9.8-10 Q16 x64 HDRI) on Windows 10. When I run this command...
I get this result...
Apparently the "+smush" operation is pushing the green square over the transparent square and almost entirely covers the yellow, too. Only a single pixel wide column of yellow remains.
By adding a transparent border to each square, the results are similar, but it even pushes the green over that last one pixel column of yellow...
This will occur when appending horizontally or vertically with either "+smush" or "-smush".
Code: Select all
magick -background none -bordercolor none -size 50x50 ^
xc:red xc:orange xc:yellow xc:none xc:green xc:blue xc:purple +smush 0 smushtest1.png
Apparently the "+smush" operation is pushing the green square over the transparent square and almost entirely covers the yellow, too. Only a single pixel wide column of yellow remains.
By adding a transparent border to each square, the results are similar, but it even pushes the green over that last one pixel column of yellow...
Code: Select all
magick -background none -bordercolor none ^
-size 50x50 xc:red xc:orange xc:yellow xc:none xc:green xc:blue xc:purple ^
-border 10 +smush 0 smushtest2.png
This will occur when appending horizontally or vertically with either "+smush" or "-smush".