pyguymer3.image.makePngSrc.createStream

pyguymer3.image.makePngSrc.createStream(arrUint8, arrInt16, /, *, calcAdaptive: bool = True, calcAverage: bool = True, calcNone: bool = True, calcPaeth: bool = True, calcSub: bool = True, calcUp: bool = True, choices: str = 'all', debug: bool = True, levels: None | list[int] = None, memLevels: None | list[int] = None, strategies: None | list[int] = None, wbitss: None | list[int] = None) bytearray[source]

Compress the PNG image data stream

This function loops over sets of settings and returns the smallest compressed PNG image data stream. See pyguymer3.image.makePng() for a discussion on how it does that.

Parameters:
Returns:

stream – The compressed PNG image data stream.

Return type:

bytearray

Notes

Copyright 2017 Thomas Guymer [1]

References