Skip to content

Commit

Permalink
[PiconsUpdater]
Browse files Browse the repository at this point in the history
* fix PIL Image.ANTIALIAS -> Image.LANCZOS
  • Loading branch information
jbleyel committed Dec 26, 2023
1 parent b6b95a3 commit abbf48a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PiconsUpdater/src/Picon.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def mergePicon(self, channelPicon, targetPicon):
piconWidth, piconHeight = picon.size
scaleWidth = int(piconWidth * self.factor)
scaleHeight = int(piconHeight * self.factor)
picon = picon.resize((scaleWidth, scaleHeight), Image.ANTIALIAS)
picon = picon.resize((scaleWidth, scaleHeight), Image.LANCZOS)
centerPoint = ((backgroundWidth - scaleWidth) // 2, (backgroundHeight - scaleHeight) // 2)
if config.plugins.PiconsUpdater.mirror_effect.getValue():
picon = add_reflection(picon)
Expand All @@ -106,7 +106,7 @@ def mergePicon(self, channelPicon, targetPicon):
return

if piconWidth != self.size[0] or piconHeight != self.size[1]:
background.thumbnail(self.size, Image.ANTIALIAS)
background.thumbnail(self.size, Image.LANCZOS)
else:
background.thumbnail(self.size)
background.save(targetPicon)
Expand Down

0 comments on commit abbf48a

Please sign in to comment.