vintage
Here’s a little Python script that makes vintage pictures.
import os
from PIL import Image, ImageFilter, ImageOps, ImageEnhance
def vintage(input_dir, output_dir):
os.makedirs(output_dir, exist_ok=True) # output directory
for filename in os.listdir(input_dir): # Loop through files
if filename.lower().endswith('.jpg'): # Check if JPG
with Image.open(os.path.join(input_dir, filename)) as img: # Open jpg
img = img.convert("RGB") # vintage effects
img = ImageOps.grayscale(img)
img = img.filter(ImageFilter.SMOOTH_MORE)
img = ImageOps.posterize(img, 8)
img = ImageEnhance.Contrast(img).enhance(1.4)
img = ImageEnhance.Brightness(img).enhance(1.75)
img = ImageOps.colorize(img, "#704214", "#eeeeee")
img = ImageEnhance.Color(img).enhance(0.8)
img.save(os.path.join(output_dir, filename)) # Save image
if __name__ == '__main__':
input_directory = '.' # input directory
output_directory = 'output' # output directory
vintage(input_directory, output_directory) # make vintage