diff --git a/src/PIL/DdsImagePlugin.py b/src/PIL/DdsImagePlugin.py index 01367d99f..c98d71c24 100644 --- a/src/PIL/DdsImagePlugin.py +++ b/src/PIL/DdsImagePlugin.py @@ -444,7 +444,7 @@ def _save(im, fp, filename): stride = (im.width * bit_count + 7) // 8 fp.write( o32(DDS_MAGIC) - # header size, flags, height, width, pith, depth, mipmaps + # header size, flags, height, width, pitch, depth, mipmaps + struct.pack("