rosbridge_library.internal.pngcompression module

rosbridge_library.internal.pngcompression.decode(string: str) str

b64 decode the string, then PNG-decompress and remove the ‘n’ padding.

rosbridge_library.internal.pngcompression.encode(string: str) str

PNG-compress the string in a square RGB image padded with ‘n’.

Returns:

The b64 encoded bytes.