c2pagen is a CLI for bulk generating reproducible C2PA assets for testing and benchmarking C2PA tooling. Assets are generated from configurable presets spanning a range of formats, sizes, and manifest complexities.
- Image: JPEG, PNG, GIF, TIFF, SVG
- Audio: WAV, MP3
- Video: MP4
Please create an issue if you'd like to see another format or preset supported.
Install the prerequisites using your system package manager:
pkg-configffmpeg(development libraries)
Install from the latest release:
$ cargo install c2pagen --lockedInstall from the latest main branch:
$ cargo install --git https://github.com/contentauth/c2pagen --lockedList available presets, optionally filtered by tag:
$ c2pagen list
$ c2pagen list --tag smallShow details for one or more presets:
$ c2pagen list small-gif medium-jpgGenerate assets into a directory. Omit preset names to generate everything:
$ c2pagen generate --output assets/
$ c2pagen generate small-gif medium-jpg --output assets/
$ c2pagen generate --tag small --output assets/Pass --no-fail-fast to keep generating remaining presets after a failure and report all failures at the end:
$ c2pagen generate --output assets/ --no-fail-fastThe c2pagen crate is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
Some components and dependent crates are licensed under different terms; please check their licenses for details.