enhance
Here’s a litte Python script that enhance a jpg image.
import os
from PIL import ImageEnhance, Image
def enhance(input_dir, output_dir, factor=1.75):
os.makedirs(output_dir, exist_ok=True) # Create output directory
for filename in os.listdir(input_dir): # Loop through all files
if filename.lower().endswith('.jpg'): # Check if JPG image
with Image.open(os.path.join(input_dir, filename)) as img: # Open the image file
enhanced_img = ImageEnhance.Color(img).enhance(factor) # Enhance image
enhanced_img.save(os.path.join(output_dir, filename)) # Save image
if __name__ == '__main__':
input_directory = '.' # input directory
output_directory = 'output' # output directory
enhance(input_directory, output_directory) # enhance