Updated example decoders [ci skip]

This commit is contained in:
Andrew Murray 2018-09-30 14:07:55 +10:00
parent 0adeb82e98
commit cea6ecfdbb
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ class DdsImageFile(ImageFile.ImageFile):
header = BytesIO(header_bytes)
flags, height, width = struct.unpack("<3I", header.read(12))
self.size = (width, height)
self._size = (width, height)
self.mode = "RGBA"
pitch, depth, mipmaps = struct.unpack("<3I", header.read(12))

View File

@ -69,7 +69,7 @@ true color.
header = string.split(header)
# size in pixels (width, height)
self.size = int(header[1]), int(header[2])
self._size = int(header[1]), int(header[2])
# mode setting
bits = int(header[3])