pyguymer3.image.manuallyOptimisePng¶
- pyguymer3.image.manuallyOptimisePng(pName, /, *, calcAdaptive: bool = True, calcAverage: bool = True, calcNone: bool = True, calcPaeth: bool = True, calcSub: bool = True, calcUp: bool = True, debug: bool = True, dpi: None | int = None, modTime=None)[source]¶
Manually optimise a PNG image.
This function will load a PNG image and recreate it in RAM. If the stored source in RAM is smaller than the source on disk then the PNG file will be overwritten.
- Parameters:
pName (str) – the PNG file name
calcAdaptive (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcAverage (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcNone (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcPaeth (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcSub (bool, optional) – See
pyguymer3.image.makePng()for the documentation.calcUp (bool, optional) – See
pyguymer3.image.makePng()for the documentation.debug (bool, optional) – Print debug messages.
dpi (None or float or int, optional) – See
pyguymer3.image.makePng()for the documentation.modTime (None or datetime.datetime, optional) – See
pyguymer3.image.makePng()for the documentation.
Notes
Copyright 2017 Thomas Guymer [1]
References