diff --git a/Tests/images/uncompressed_rgb.png b/Tests/images/uncompressed_rgb.png index 50bca09ee..f02b50f6f 100644 Binary files a/Tests/images/uncompressed_rgb.png and b/Tests/images/uncompressed_rgb.png differ diff --git a/src/PIL/DdsImagePlugin.py b/src/PIL/DdsImagePlugin.py index f405b84e3..58d1d5341 100644 --- a/src/PIL/DdsImagePlugin.py +++ b/src/PIL/DdsImagePlugin.py @@ -135,7 +135,7 @@ class DdsImageFile(ImageFile.ImageFile): rawmode += masks[0xFF000000] rawmode += masks[0xFF0000] + masks[0xFF00] + masks[0xFF] - self.tile = [("raw", (0, 0) + self.size, 0, (rawmode, 0, 1))] + self.tile = [("raw", (0, 0) + self.size, 0, (rawmode[::-1], 0, 1))] else: data_start = header_size + 4 n = 0