Skip to content

Feature(util): Add a command to decode invisible watermarks#8895

Open
lstein wants to merge 5 commits intoinvoke-ai:mainfrom
lstein:copilot/add-cli-command-decode-watermarks
Open

Feature(util): Add a command to decode invisible watermarks#8895
lstein wants to merge 5 commits intoinvoke-ai:mainfrom
lstein:copilot/add-cli-command-decode-watermarks

Conversation

@lstein
Copy link
Collaborator

@lstein lstein commented Feb 21, 2026

Summary

This adds a command, invoke-readwatermark that reads the invisible watermarks written to generated images when the "Enable Invisible Watermark" option is added. I realilzed we needed this during testing of PR #8871.

Related Issues / Discussions

QA Instructions

  1. Install this PR with uv pip install... in order to create the command.
  2. Generate an image or two with invisible watermarks.
  3. Run invoke-readwatermark <path to image>... from the command line with images that should and should not contain watermarks.
  4. Verify that command returns InvokeAI watermark for images that have the watermark and an empty string for those that don't.

Note that the watermarking package we use is very sensitive to the content of the image and seems to flip bits at random. Some combinations of model and VAE are particularly prone to generating garbled watermarks.

Merge Plan

Simple merge.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

Copilot AI and others added 4 commits February 21, 2026 16:17
Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
…keAI watermark text

Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
@github-actions github-actions bot added python PRs that change python files Root backend PRs that change backend files python-deps PRs that change python dependencies labels Feb 21, 2026
@lstein lstein changed the title [Feature(util)]: Add a command to decode invsible watermarks Feature(util): Add a command to decode invsible watermarks Feb 21, 2026
@lstein lstein assigned dunkeroni and unassigned DustyShoe and dunkeroni Feb 23, 2026
@lstein lstein changed the title Feature(util): Add a command to decode invsible watermarks Feature(util): Add a command to decode invisible watermarks Feb 27, 2026
@lstein lstein added the v6.13.x label Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend PRs that change backend files python PRs that change python files python-deps PRs that change python dependencies Root v6.13.x

Projects

Status: 6.13.x

Development

Successfully merging this pull request may close these issues.

4 participants