Skip to content
Extraits de code Groupes Projets
Valider 48dcbc8d rédigé par Elliu's avatar Elliu
Parcourir les fichiers

Use non-deprecated Image.Resampling.LANCZOS

parent dde2ea06
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -120,6 +120,6 @@ draw.text(( ...@@ -120,6 +120,6 @@ draw.text((
finalHeight = 200 finalHeight = 200
finalWidth = finalHeight * width // boxBot finalWidth = finalHeight * width // boxBot
img = img.resize((finalWidth, finalHeight), Image.LANCZOS) img = img.resize((finalWidth, finalHeight), Image.Resampling.LANCZOS)
img.save("tmpAdacher.png", format="PNG") img.save("tmpAdacher.png", format="PNG")
print(str(finalWidth) + "," + str(finalHeight)) print(str(finalWidth) + "," + str(finalHeight))
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter