mirror of
https://github.com/Rushilwiz/pfp-frame.git
synced 2025-04-09 22:50:17 -04:00
fix: fixed sizing issue
This commit is contained in:
parent
4d6959050b
commit
d329cf7b48
|
@ -23,7 +23,7 @@ class Profile(models.Model):
|
||||||
if bool(self.image):
|
if bool(self.image):
|
||||||
img = Image.open(self.image.path)
|
img = Image.open(self.image.path)
|
||||||
frame = Image.open(settings.MEDIA_ROOT + "/frame.png")
|
frame = Image.open(settings.MEDIA_ROOT + "/frame.png")
|
||||||
img.thumbnail((300, 300))
|
img.thumbnail((500, 500))
|
||||||
width, height = img.size
|
width, height = img.size
|
||||||
frame.thumbnail((width, height))
|
frame.thumbnail((width, height))
|
||||||
img.paste(frame, (0,0), frame)
|
img.paste(frame, (0,0), frame)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user