possible bug - -draw floodfill not gravity sensitive
Posted: 2015-09-28T09:47:56-07:00
According to the docs at http://www.imagemagick.org/Usage/draw/#color, -draw should be gravity sensitive. But it always seems to floodfill from the upper left corner (the default gravity) as in the following example. I have tested numerous releases back to 6.7.5.10 and none of them seem to work correctly. In the following I am trying to floodfill from the south east corner, without having to know the coordinates of that corner.
input:
A workaround would be to either get the proper coordinates ahead of time or rotate the image 180 degrees, floodfill, then rotate back. But the point is to do this with gravity.
input:
Code: Select all
convert black_diamond.jpg -gravity SouthEast -fuzz 10% -fill black \
-draw "color 0,0 floodfill" black_diamond_filled.jpg
A workaround would be to either get the proper coordinates ahead of time or rotate the image 180 degrees, floodfill, then rotate back. But the point is to do this with gravity.