Browse Source

like made the deepfry function simplier and my effiecent.

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
697100ffc1
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      roxbot/cogs/image.py

+ 9
- 8
roxbot/cogs/image.py View File

@@ -257,25 +257,26 @@ class CustomCommands:
else:
jpg_name = filename

# Brightness Enhance
img = Image.open(jpg_name)

# Brightness Enhance

ehn = ImageEnhance.Brightness(img)
ehn.enhance(1.25).save(jpg_name)
img = ehn.enhance(1.25)

# Contrast Enhance
img = Image.open(jpg_name)
ehn = ImageEnhance.Contrast(img)
ehn.enhance(1.5).save(jpg_name)
img = ehn.enhance(1.5)

# Sharpness Enhance
img = Image.open(jpg_name)
ehn = ImageEnhance.Sharpness(img)
ehn.enhance(20).save(jpg_name)
img = ehn.enhance(20)

# Saturation Enhance
img = Image.open(jpg_name)
ehn = ImageEnhance.Color(img)
ehn.enhance(2).save(jpg_name)
img = ehn.enhance(2)

img.save(jpg_name)

# JPG-fy image
for x in range(10):

Loading…
Cancel
Save