module documentation

PNG image manipulation helpers.

Function read_png_depth Read the special tEXt chunk indicating the depth from a PNG file.
Function write_png_depth Write the special tEXt chunk indicating the depth to a PNG file.
Constant DEPTH_CHUNK_LEN Undocumented
Constant DEPTH_CHUNK_START Undocumented
Constant IEND_CHUNK Undocumented
Constant LEN_DEPTH Undocumented
Constant LEN_IEND Undocumented
def read_png_depth(filename): (source)

Read the special tEXt chunk indicating the depth from a PNG file.

Parameters
filename:strUndocumented
Returns
int|NoneUndocumented
def write_png_depth(filename, depth): (source)

Write the special tEXt chunk indicating the depth to a PNG file. The chunk is placed immediately before the special IEND chunk.

Parameters
filename:strUndocumented
depth:intUndocumented
DEPTH_CHUNK_LEN = (source)

Undocumented

Value
struct.pack('!i', 10)
DEPTH_CHUNK_START: bytes = (source)

Undocumented

Value
b'tEXtDepth\x00'
IEND_CHUNK: bytes = (source)

Undocumented

Value
b'\x00\x00\x00\x00IEND\xaeB`\x82'
LEN_DEPTH: int = (source)

Undocumented

Value
22
LEN_IEND: int = (source)

Undocumented

Value
12