I accidentally all the maps. whoops
This commit is contained in:
@@ -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")
|
||||
Reference in New Issue
Block a user