Skip to content

Commit

Permalink
Merge pull request #1256 from edissyum/3.1.1_fix#2_rgba
Browse files Browse the repository at this point in the history
3.1.1
  • Loading branch information
Brich40 authored Jan 17, 2024
2 parents 25ac620 + 459f222 commit ac23f61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/classes/Files.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ def ocr_on_fly(self, img, selection, ocr, thumb_size=None, regex_name=None, remo
extension = os.path.splitext(img)[1]
with Image.open(img) as im2:
cropped_image = im2.crop(crop_ratio)
cropped_image = cropped_image.convert('RGB')
cropped_image.save('/tmp/cropped_' + rand + extension)

if remove_line:
Expand Down

0 comments on commit ac23f61

Please sign in to comment.