Skip to content
Put a secret image into another image using alpha channel magic.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitattributes
.gitignore
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

image-hide

Put a secret image into another image using alpha channel magic.

Try to view this image under black background:

Inspired by Hackergame 2019

Usage

npm install --save image-hide
const fs = require('fs')
const hide = require('image-hide')

// Size (width & height) of these images should be same.
let imageA = fs.readFileSync('a.png')
let imageB = fs.readFileSync('b.png')

fs.writeFileSync('result.png', Buffer.from(hide(imageA, imageB)))
You can’t perform that action at this time.