Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

image-hide

0.0.3 • Public • Published

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)))

Keywords

none

Install

npm i image-hide

DownloadsWeekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

19.9 kB

Total Files

9

Last publish

Collaborators

  • avatar