Skip to content

feat: batch dataset rendering (CSV -> many PNGs) #96

Description

@ajianaz

Demand source: Robolly Datasets — upload a CSV, generate hundreds/thousands of images in one batch. Use cases: personalized campaigns, certificates, catalogs.

Proposed design:

  • CLI: cosy render --template og-image --dataset rows.csv --out-dir out/.
  • CSV header = field names; each row = 1 slide-set (or 1 slide).
  • Output filename pattern: {row_index}_{slug}.png (optional _filename column).
  • Parallelism: rayon par_iter (the render kernel is already concurrency-safe).
  • Success/failure summary at the end + --fail-fast flag.

Acceptance:

  • 100-row CSV -> 100 valid PNGs, non-zero exit code if any row fails.
  • Multi-slide template: 1 row = 1 complete data JSON (the _data column holds JSON) OR flat mapping to a single-slide template.

Effort: S-M. Priority #5.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions