rosbridge_library.internal.pngcompression module

rosbridge_library.internal.pngcompression.decode(string)

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

rosbridge_library.internal.pngcompression.encode(string)

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

Returns:

The b64 encoded bytes.