Skip to content

Commit

Permalink
dev(narugo): better invert
Browse files Browse the repository at this point in the history
  • Loading branch information
narugo1992 committed May 3, 2024
1 parent 63977d9 commit c4d111e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waifuc/action/augument.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _image_take(self, item: ImageItem):
if self.degree_range:
min_degree, max_degree = self.degree_range
degree = random.random() * (max_degree - min_degree) + min_degree
image = squeeze_with_transparency(image.rotate(degree, expand=True))
image = squeeze_with_transparency(image.rotate(degree, expand=True, resample=Image.BILINEAR))
else:
degree = None

Expand Down

0 comments on commit c4d111e

Please sign in to comment.