Skip to content

Commit

Permalink
Fix compatibility with Pilloa 10.0 (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoPeng committed Oct 17, 2023
1 parent 6586d26 commit 9571816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machina/models/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def resize_image(self, data, size):
image = Image.open(BytesIO(data))

# Resize!
image.thumbnail(size, Image.ANTIALIAS)
image.thumbnail(size, Image.LANCZOS)

string = BytesIO()
image.save(string, format='PNG')
Expand Down

0 comments on commit 9571816

Please sign in to comment.