pyguymer3.image.returnPngInfo¶
- pyguymer3.image.returnPngInfo(pName, /, *, debug=True)[source]¶
Return information about a PNG
This function returns information, such as filter type and compression method, about a PNG.
- Parameters:
- Returns:
nx (int) – The width of the input PNG.
ny (int) – The height of the input PNG.
ct (str) – The colour type of the input PNG (as defined in the PNG specification [2]).
ft (str) – The filter type of the input PNG (as defined in the PNG specification [2])
wbits (int) – The compression window size of the input PNG (as defined in the ZLIB compressed data format specification [3]).
fdict (bool) – Whether the compressor was preconditioned with data.
flevel (str) – The compression level of the input PNG (as defined in the ZLIB compressed data format specification [3]).
Notes
This function only supports 8-bit images (either greyscale, paletted or truecolour), without interlacing.
Copyright 2017 Thomas Guymer [1]
References