Page 1 of 1

Issue with fuzz & floodfill

Posted: 2011-05-29T16:55:25-07:00
by Frescard
I'm running V 6.7.0-0 under Windows, andI cannot get the fuzz argument to do anything.
No matter what value I choose, and where in the command line I position it, it seems to not be interpreted at all (and only fill at a tolerance of 0%).

The command I use is convert orgman.png -fill red -fuzz 20% -draw "color 25,25 floodfill" newman.png, and the before and after pictures can be seen below.
(Of course, I'm just using the red fill color for demonstration purposes. IRL it would be something around #303030.)
Image
Image

Re: Issue with fuzz & floodfill

Posted: 2011-05-29T17:11:19-07:00
by fmw42
try putting -fuzz before -fill. this works for me on IM 6.7.0.2 Q16 Mac OSX Tiger. however, you will have a hard time as the background black is too close to the black on his pants.

convert orgman.png -fuzz 1.2% -fill red -draw "color 0,0 floodfill" newman1p2.png

Re: Issue with fuzz & floodfill

Posted: 2011-05-29T18:09:55-07:00
by Frescard
Yeah, I had tried that sequence too, but it didn't change anything.
I had also tried it with a JPG version of the same image, but no difference.

If I fill the area in IrfanView (with a tolerance of just 1%) it fills it just fine (barely touching the pants).

Re: Issue with fuzz & floodfill

Posted: 2011-05-29T19:23:03-07:00
by fmw42
In Windows, syntax is a little different is some cases with special characters, so in this case you need to escape the % as %%, if I am not mistaken


convert orgman.png -fuzz 1.2%% -fill red -draw "color 0,0 floodfill" newman1p2.png

see http://www.imagemagick.org/Usage/windows/

Re: Issue with fuzz & floodfill

Posted: 2011-05-29T19:52:22-07:00
by Frescard
YES!!!
That was it! Once I added the other percentage sign, we got lift-off: :)

Image

Re: Issue with fuzz & floodfill

Posted: 2011-05-29T20:31:10-07:00
by fmw42
sorry I did not catch the windows issue sooner. but glad things are working now to your satisfaction.