Wondering what’s next for npm?Check out our public roadmap! »

    @sensio/op-sn-image-phash
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.8-alpha.4 • Public • Published

    @sensio/op-sn-image-phash

    Blockchain Version bafy2bzaceafhfdbh4r6fmmnudwqehqedhf632dbafl7fnmbkbpjnv2miacdza

    Description

    Perceptual hash calculation, currently implementing http://blockhash.io/

    Links and Repo

    Install

    # install latest version
    yarn add @sensio/op-sn-image-phash
    
    # or specific version
    yarn add @sensio/op-sn-image-phash@0.1.0

    Usage

    import snImagePhash from '@sensio/op-sn-image-phash'
    
    const dataAsUintArray = new U8intArray(7)
    const dataAsBuffer = Buffer.from(7)
    await snImagePhash([{ data: dataAsUintArray, decode: () => dataAsBuffer }])

    Contributing

    PRs accepted.

    License

    Longer version is in LICENSE file

    Apache-2.0 © Sensio Group

    Install

    npm i @sensio/op-sn-image-phash

    DownloadsWeekly Downloads

    2

    Version

    0.4.8-alpha.4

    License

    Apache-2.0

    Unpacked Size

    42.2 kB

    Total Files

    35

    Last publish

    Collaborators

    • avatar