Skip to content
Advertisement

How to embed an image to a cover image by selecting random pixels in cover image?

JavaScript

Above is the code that I done so far. It hide pixels in cover image sequentially but I need it to hide the image to the cover image by selecting random pixels from the cover image.

Advertisement

Answer

Conceptually you want to generate all the pixel coordinates and shuffle them in a deterministic way, so that the extraction knows where to look.

JavaScript

For example

JavaScript

Adjustments to your code

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement