From 47215153f96ff78f2f9eb1962bc1c6f12ae7fbb2 Mon Sep 17 00:00:00 2001 From: Debulois Quentin Date: Sun, 4 Oct 2020 15:04:57 +0200 Subject: Résolution bug, tuple nécessaire pour supression alpha MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Redim/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Redim/core.py') diff --git a/Redim/core.py b/Redim/core.py index d180305..3b5a742 100644 --- a/Redim/core.py +++ b/Redim/core.py @@ -52,7 +52,7 @@ class Redim(): """Suppression de l'alpha (transparent) des photos""" img = img.convert("RGBA") if img.mode in ("RGBA", "LA"): - fond = image_new(img.mode[:-1], img.size, background) + fond = image_new(img.mode[:-1], img.size, tuple(background)) fond.paste(img, img.split()[-1]) img = fond img.convert("RGB") -- cgit v1.2.3