This Python script, utilizing the Pillow (PIL) library, is designed for image-processing tasks. It enhances images by applying a sequence of operations and saves the edited versions in a specified directory.
Applies a sharpening filter to enhance image details. Converts the image to black and white for a classic aesthetic.
Enhances the contrast of the image to improve visibility.
Creates an output directory for the processed images, if it doesn't exist.
Ensure that the Pillow library is installed. You can install it using pip install Pillow.pip install Pillow
Modify the path and pathOut variables to point to your input (original photos) and output (edited photos) directories.
path: Absolute path to the directory containing original photos.
pathOut: Absolute path to the directory where edited photos will be saved.
Execute the script, and it will process each image in the input directory, applying the specified enhancements, and save the edited images in the output directory.