guofei9987/blind_watermark ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python image watermark tool that can hide an invisible watermark inside a photo and later extract it without needing the original photo. I want it to work for text watermarks, small image watermarks, and even raw bit data. It should support password based embedding and extraction, save the watermarked image to a file, and let me recover the watermark when I know its length or shape.

Please make it usable in two ways, from Python code and from the terminal, so I can do quick embed and extract commands. The Python side should feel straightforward, like load image, load watermark, embed, then extract. The terminal side should let me pass the input image, password, output path, and watermark info.

It would be great if the watermark still survives common edits like cropping, rotation, resizing, noise, masking, or brightness changes as much as this approach allows. Include a couple of examples and basic docs so someone can try it right away. Look up current docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab