😶🌫️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from PIL import Image | |
def compress_png_in_place(folder_path): | |
""" | |
Recursively finds all PNG files in the specified directory, compresses them, and saves them in place. | |
Args: | |
folder_path (str): The path to the directory where to start searching and compressing PNG files. |