image-hide

    1.0.2 • 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
    import { promises as fs } from 'fs'
    import hide from 'image-hide'
    
    // Size (width & height) of these images should be same.
    let imageA = await fs.readFile('a.png')
    let imageB = await fs.readFile('b.png')
    
    await fs.writeFile('result.png', Buffer.from(hide(imageA, imageB)))

    Keywords

    none

    Install

    npm i image-hide

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    9.38 kB

    Total Files

    10

    Last publish

    Collaborators

    • coxxs