Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
fixed contrast being too hard
Browse files Browse the repository at this point in the history
  • Loading branch information
CreepyMemes authored Jan 25, 2023
1 parent 1f77386 commit ab0b2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Opens an image, converts to grayscale and increases contrast
def open_image(file):
img = Image.open(file).convert('L')
img = ImageEnhance.Contrast(img).enhance(3)
img = ImageEnhance.Contrast(img).enhance(1.5)
return img

# Calculate height value to maintain the original aspect ratio
Expand Down

0 comments on commit ab0b2b8

Please sign in to comment.