Python, Automation, Data Science, Artificial Intelligence, Llm.
f"watermarked_{filename}" watermarked_path = os.path.join(image_directory, watermarked_filename) image.save(watermarked_path) print(f"Watermarked: {filename}") This code snippet iterates over the images in the specified directory. It checks if each file has a ‘.jpg’ or ‘.png’ extension to identify