We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c72d0 commit 473b801Copy full SHA for 473b801
src/tagstudio/qt/previews/renderer.py
@@ -1407,6 +1407,10 @@ def _pdn_thumb(filepath: Path) -> Image.Image | None:
1407
if encoded_png:
1408
decoded_png = base64.b64decode(encoded_png)
1409
im = Image.open(BytesIO(decoded_png))
1410
+ if im.mode == "RGBA":
1411
+ new_bg = Image.new("RGB", im.size, color="#1e1e1e")
1412
+ new_bg.paste(im, mask=im.getchannel(3))
1413
+ im = new_bg
1414
except Exception as e:
1415
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
1416
0 commit comments