diff --git a/mspconvert.py b/mspconvert.py index 788ea41..174b880 100755 --- a/mspconvert.py +++ b/mspconvert.py @@ -43,7 +43,7 @@ try: if version == 2: print("Version 2 Paint file detected...") - Width = int.from_bytes(f.read(2), "little") + width = int.from_bytes(f.read(2), "little") height = int.from_bytes(f.read(2), "little") size = int((width * height) / 8) f.seek((height * 2) + 32) # seek to the start of image data