[resolved] potential bug -draw color floodfill IM 7.0.5.4 Q16

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

[resolved] potential bug -draw color floodfill IM 7.0.5.4 Q16

Post by fmw42 »

Reference: viewtopic.php?f=1&t=31782

Using Athony's example with the gold frame at http://www.imagemagick.org/Usage/thumbn ... ame_joints, I find that it works fine in IM 6.9.8.3 Q16, but has colored specks in the frame in the result for IM 7.0.5.4 HDRI Q16 (Mac OSX SnowLeopard). This first appears in the code after the first -draw "color 1,0 floodfill", when I put +write tmpX.png in various places. But just doing a simple image floodfill does not show this issue. So I think it is in combination with the tiling over the frame.

Input:
Image

Image

Image



IM 6

Code: Select all

convert thumbnail.gif -write mpr:image +delete \
goldthin_top.png -write mpr:edge_top +delete \
goldthin_btm.png -rotate 180 -write mpr:edge_btm +delete \
\
mpr:image -alpha set -bordercolor none \
-compose Dst -frame 25x25+25 -compose over \
\
-transverse -tile mpr:edge_btm \
-draw 'color 1,0 floodfill' -transpose -draw 'color 1,0 floodfill' \
-transverse -tile mpr:edge_top \
-draw 'color 1,0 floodfill' -transpose -draw 'color 1,0 floodfill' \
\
mpr:image -gravity center -composite -scale 400% frame_gold6.png
Image



IM 7

Code: Select all

magick thumbnail.gif -write mpr:image +delete \
goldthin_top.png -write mpr:edge_top +delete \
goldthin_btm.png -rotate 180 -write mpr:edge_btm +delete \
\
mpr:image -alpha set -bordercolor none \
-compose Dst -frame 25x25+25 -compose over \
\
-transverse -tile mpr:edge_btm \
-draw 'color 1,0 floodfill' -transpose -draw 'color 1,0 floodfill' \
-transverse -tile mpr:edge_top \
-draw 'color 1,0 floodfill' -transpose -draw 'color 1,0 floodfill' \
\
mpr:image -gravity center -composite -scale 400% frame_gold7.png
Image
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: potential bug -draw color floodfill IM 7.0.5.4 Q16

Post by snibgo »

The problem does not occur using v7.0.3-6.
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: potential bug -draw color floodfill IM 7.0.5.4 Q16

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: potential bug -draw color floodfill IM 7.0.5.4 Q16

Post by fmw42 »

This issue seems to be fixed in the latest betas as of today (6.9.8.5 and 7.0.5.6)
Post Reply