I accidentally all the maps. whoops

This commit is contained in:
Poojawa
2019-08-04 06:27:28 -05:00
parent 7d65ddb417
commit dcbcf704da
8 changed files with 39 additions and 67 deletions
+3 -1
View File
@@ -45,6 +45,8 @@ class Dmi:
@classmethod
def from_file(cls, fname):
image = Image.open(fname)
if image.mode != 'RGBA':
image = image.convert('RGBA')
# no metadata = regular image file
if 'Description' not in image.info:
@@ -250,4 +252,4 @@ if __name__ == '__main__':
Dmi.from_file(os.path.join(dirpath, filename))
count += 1
print(f"Successfully parsed {count} dmi files")
print(f"Successfully parsed {count} dmi files")