mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Updated example decoders [ci skip]
This commit is contained in:
parent
0adeb82e98
commit
cea6ecfdbb
|
@ -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))
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue
Block a user