Need to comply with the EU AI Act by 2 December 2026? New users can start with Trufo's AI Labeling Service or C2PA Certificates with your first month free.

New users: AI Labeling Service or C2PA Certificates, first month free.

Articles / Product

Release Notes v2.4

Media actions (resize, crop, trim, repackage), richer transcode controls, management organizations, ANI animated cursor support, and stricter action validation.

The Trufo Team Published November 23, 2026

trufo-py v2.4.0 adds first-class media transform actions to the C2PA Signing API, upgrades transcode with codec and quality controls, introduces management organizations for multi-org teams, and adds ANI format support.

Media Actions: Resize, Crop, Trim, and Repackage

Four new media actions let your pipeline transform an asset and record the corresponding C2PA action in a single signing call:

  • resize (TrufoAction.RESIZE): Proportionally resizes an image or video to a target width, height, or both, as displayed, and records c2pa.resized.proportional.
  • crop (TrufoAction.CROP): Keeps a specified rectangle of an image or video frame, as displayed, and records c2pa.cropped.
  • trim (TrufoAction.TRIM): Keeps an exact time span of audio or video and records c2pa.trimmed.
  • repackage (TrufoAction.REPACKAGE): Moves a video’s streams into MP4 or MOV without re-encoding them and records c2pa.repackaged. Like transcode, it cannot be combined with a request that signs the file as newly created.

See Actions and Assertions and Media Formats for per-format support.

Smarter transcode & Watermark Ordering

  • Codec and Quality Parameters: transcode now accepts quality, video_codec, audio_codec, crf, and audio_bitrate. When the input format is already a supported target, target_mime_type can be omitted to apply encoding settings in place.
  • Higher Defaults & Stream Copying: Default quality for JPEG, WebP, and AVIF is now 90 (up from 75/80/75); AAC and MP3 default to 192 kbit/s; WAV preserves 16-, 24-, or 32-bit depth (8-bit converts to 16-bit). Streams that already match the target are copied without re-encoding, recording c2pa.repackaged when nothing was re-encoded and leaving already-matching files untouched.
  • Metadata Preservation & Warnings: transcode preserves color profiles, EXIF, XMP, resolution, comments, and all streams supported by the output container, emitting an explicit response warning naming any metadata the target container could not retain.
  • Watermark Ordering: watermark is now evaluated against the post-transcode or post-repackage target type (so an AVI transcoded or repackaged to MP4 can be watermarked in the same call). If a media action runs after a watermark was embedded, the API emits a warning — place the watermark action last.

Management Organizations

Management organizations let multi-team and enterprise accounts centralize billing and people management across sub-organizations. The owner of an existing standalone organization can create a management organization while retaining their existing organization as the first sub-organization — keeping all members, API keys, and signing history intact. See Trufo Account Setup.

ANI Format Support & Validation Tightening

  • ANI Animated Cursors: C2PA signing and validation now support ANI (application/x-navi-animation).
  • Stricter Parameter & Policy Checks: Unknown or incompatible action parameters now return 400 InvalidActionParameter instead of being silently ignored. transcode rejects lossy alpha drops (such as transparent images to JPEG) and undocumented targets (image/jxl, image/x-adobe-dng have been removed).
  • ai_system & parentOf Consistency: Under signed_input_policy="auto", requests carrying ai_system on a camera-captured or human-created C2PA input now consistently return 400 regardless of actions; omit ai_system or set signed_input_policy="keep" when intentionally processing those files. Setting manifest_settings.all_actions_included=true on a parentOf ingredient without action_history now returns 400.

Upgrading Local Mode

Local mode extras in v2.4 require trufo-provenance 2.4.x (pip install --upgrade 'trufo[local-full]>=2.4,<2.5') or the ghcr.io/trufo-ai/trufo-local:2.4 (2.4-full for watermarking) Docker image. Requests using the new media actions or transcode parameters against an older local engine return 400 UnsupportedSDKVersion.

If you watermark HEIC, HEIF, or AVIF locally with trufo[local-full], ensure heif-enc 1.20.0 or newer (with its HEVC and AV1 encoder plugins) is installed. See Local Signing with Python and Local Signing with Docker.

Get Started Now

If you are ready, head over to app.trufo.ai to get started. If you have questions, feel free to contact support@trufo.ai or schedule a consultation with one of our experts.