convert bug

anon anon <[email protected]> Fri, 11 Sep 2009 19:08:45 +0300
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
This script show a bug:

head -c 9 /dev/urandom > test1
convert -depth 1 -size 9x8 gray:test1 -size 9x8 gray:test2
md5sum test?
du -b test?
head -c 9 test2 > test3
du -b test?
md5sum test?

or

head -c 9 /dev/urandom > test1
convert -depth 1 -size 9x8 gray:test1 -size 9x8 gray:test2
md5sum test?
du -b test?
head -c 9 test2 > test3
du -b test?
md5sum test?


If it's multiple eight, no error:

head -c 8 /dev/urandom > test1
convert -depth 1 -size 8x8 gray:test1 -size 9x8 gray:test2
md5sum test?
du -b test?

or

head -c 8 /dev/urandom > test1
convert -depth 1 -size 9x8 gray:test1 -size 9x8 gray:test2
md5sum test?
du -b test?

Version: ImageMagick 6.5.5-9 2009-09-11 Q16 OpenMP http://www.imagemagick.org