Skip to content

c2patool works, Python bindings raise exceptionΒ #95

@DiTo97

Description

@DiTo97

I have been playing with the library on some OpenAI-generated images, such as:

Image

As the title says, I am able to read the C2PA manifest from the CLI, but not from the Python bindings.

I have run the following command:

c2patool /path/to/image.png

which works fine and returns the manifest as a JSON string.

Then, I have run:

import c2pa


try:
    reader = c2pa.Reader.from_file("path/to/image.png")
    print("manifest store:", reader.json())
    manifest = reader.get_active_manifest()
except Exception as e:
    print(e)

which throws an error with message reason='claim could not be converted from CBOR'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions