pdft.tasks.compressed_to_dict

pdft.tasks.compressed_to_dict#

pdft.tasks.compressed_to_dict(c)[source]#

Convert to the JSON-ready dict form.

One plane is written in upstream’s schema (version 1.0). A stack of planes adds original_channels and is marked version 1.1.

Parameters:

c (CompressedImage)

Return type:

dict