mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Convert icons to RGBA in the icon merger (#44890)
* Mark dmi.merge and pre-commit.hook executable * Convert icons to RGBA when merging
This commit is contained in:
Regular → Executable
Regular → Executable
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user