An open API service indexing awesome lists of open source software.

https://github.com/girkovarpa/watermark

https://stackoverflow.com/questions/62332819/how-to-embed-text-inside-image/62335638
https://github.com/girkovarpa/watermark

lsb steganography watermark

Last synced: 5 months ago
JSON representation

https://stackoverflow.com/questions/62332819/how-to-embed-text-inside-image/62335638

Awesome Lists containing this project

README

          

This is a client-side implementation of LSB (least significant bit) steganography.

It does not work for images with transparency. I don't know why.

```html

(async () => {
const base64 = /* some base64 image data goes here */;
const watermark = await createWatermark(base64, 'John Doe');

const image = new Image();
image.src = watermark;
document.body.appendChild(image); // displays watermarked image on screen

const hiddenText = await readWatermark(watermark, 8);
console.log(hiddenText); // John Doe
})();