Page 1 of 1

Transparency in sub-image search result

Posted: 2013-02-28T21:59:16-07:00
by anthony
If I do a sub-image search on a GIF image which has a transparency channel the resulting 'map' has random transparency in the result...

Code: Select all

convert http://www.imagemagick.org/Usage/images/colortable.gif \( +clone -crop 50%x+0+0 \) miff:- | compare -subimage-search -  | convert - -delete 0 result.png
This downloads a GIF image, crops a 50% sub-image and feeds them to compare.
The second 'map' image (which is what we are interested in) that is generated by compare has some random transparency in it.
There should be no transparency as it is a grayscale map of 'color distances'.

The transparency in that map should not exist, and looks like undefined random memory data.
Turning off the alpha channel before the final save works, but should have been performed by the "compare" program...


ASIDE: compare, and sub-image compare should be merged into IMv7 "magick".

Re: Transparency in sub-image search result

Posted: 2013-03-01T07:20:56-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.3-7 Beta available by sometime tomorrow. Thanks.