Module c2pa::jumbf_io

source ·

Functions§

  • returns a list of supported file extensions and mime types
  • load the JUMBF block from an asset if available
  • Return jumbf block from in memory asset
  • Return jumbf block from stream asset
  • removes the C2PA JUMBF from an asset Note: Use with caution since this deletes C2PA data It is useful when creating remote manifests from embedded manifests
  • save_jumbf to a file in_path - path is source file out_path - path to the output file If no output file is given an new file will be created with “-c2pa” appending to file name e.g. “test.jpg” => “test-c2pa.jpg” If input == output then the input file will be overwritten.
  • writes the jumbf data in store_bytes into an asset in data and returns the newly created asset
  • writes the jumbf data in store_bytes reads an asset of asset_type from reader, adds jumbf data and then writes to writer