Skip to content

Repository files navigation

c2pagen

crates.io check

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.

Supported Formats

  • 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.

Installation

Install the prerequisites using your system package manager:

Installing from cargo

Install from the latest release:

$ cargo install c2pagen --locked

Installing from source

Install from the latest main branch:

$ cargo install --git https://github.com/contentauth/c2pagen --locked

Usage

List available presets, optionally filtered by tag:

$ c2pagen list
$ c2pagen list --tag small

Show details for one or more presets:

$ c2pagen list small-gif medium-jpg

Generate 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-fast

License

The 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.

About

Bulk, reproducible C2PA asset generator.

Resources

Stars

Watchers

Forks

Releases

Used by

Contributors

Languages