When did floodfill syntax change?
Posted: 2018-12-07T01:47:38-07:00
A while ago I wrote a script, mktrans, that gives any image antialiased transparency using a floodfill. I was testing it on the development version of Ubuntu (Cosmic Cuttlefish) and was surprised it no longer works because the floodfill syntax has changed. The version of ImageMagick that comes with Cosmic Cuttlefish currently is 6.9.10. Specifically,
Here is an example that shows the problem. (Note, I'm outputting to sixel, presuming a terminal like mlterm or xterm/vt340 that can display images inline).
This is the syntax that works in the older version of ImageMagick (6.9.7):
But, I had to swap the colors to get it to work in the newer version (6.9.10):
When did this change? I tried searching around, but couldn't find the needle in the haystack of ImageMagick documentation and bug reports.
My script works fine on Debian GNU/Linux, but they offer an older version of ImageMagick (6.9.7-4 Q16 x86_64 20170114 ).Version: ImageMagick 6.9.10-8 Q16 i686 20180723 https://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: https://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
Here is an example that shows the problem. (Note, I'm outputting to sixel, presuming a terminal like mlterm or xterm/vt340 that can display images inline).
This is the syntax that works in the older version of ImageMagick (6.9.7):
Code: Select all
convert logo: -fill saddlebrown -floodfill +0+0 white sixel:-
Code: Select all
convert logo: -fill white -floodfill +0+0 saddlebrown sixel:-