# Open the image
image = Image.open(“image.jpg”)
# Convert the image to grayscale
image = image.convert(“L”)
# Enhance the contrast of the image
enhancer = ImageEnhance.Contrast(image)
enhancer.enhance(2.0)
# Save the image
image.save(“image_enhanced.jpg”)