-2010-01-02 6.6.7-0 Glenn Randers-Pehrson <glennrp@image...>
+2011-01-03 6.6.7-0 Cristy <quetzlzacatenango@image...>
+ * Handle negative heights for ICO images.
+
+2011-01-02 6.6.7-0 Glenn Randers-Pehrson <glennrp@image...>
* Recent changes sometimes caused the PNG encoder to select colortype=2
(Truecolor) instead of 0 (Grayscale) for grayscale images.
-2010-01-01 6.6.6-10 Glenn Randers-Pehrson <glennrp@image...>
+2011-01-01 6.6.6-10 Glenn Randers-Pehrson <glennrp@image...>
* The PNG decoder now checks whether the image actually has any transparency
when the input file contains an alpha channel. (Reference
http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=17748)
if (offset < 0)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
icon_info.size=ReadBlobLSBLong(image);
- icon_info.width=(unsigned char) ReadBlobLSBLong(image);
- icon_info.height=(unsigned char) ReadBlobLSBLong(image)/2;
+ icon_info.width=(unsigned char) ((int) ReadBlobLSBLong(image));
+ icon_info.height=(unsigned char) ((int) ReadBlobLSBLong(image)/2);
if ((icon_file.directory[i].width == 0) &&
(icon_file.directory[i].height == 0))
{