pyguymer3.image.optimise_image

pyguymer3.image.optimise_image(fname, /, *, chunksize=1048576, debug=True, exiftoolPath=None, gifsiclePath=None, jpegtranPath=None, optipngPath=None, pool=None, strip=False, timeout=60.0)[source]

Please read the documentation for the four functions: “exiftool”, “gifsicle”, “jpegtran” and “optipng”. It is not safe to keep on running the programs “gifsicle” and “jpegtran” on images, but it is safe to keep on running all of my wrapper functions on images instead.

chunksizeint, optional

the size of the chunks of any files which are read in (in bytes)