Giter Club home page Giter Club logo

blackmagickartel / web-digital-watermarking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zy445566/web-digital-watermarking

0.0 1.0 0.0 10.52 MB

A digital watermark is a kind of marker covertly embedded in a noise-tolerant signal such as an audio, video or image data. It is typically used to identify ownership of the copyright of such signal. "Watermarking" is the process of hiding digital information in a carrier signal; the hidden information should, but does not need to, contain a relation to the carrier signal. Digital watermarks may be used to verify the authenticity or integrity of the carrier signal or to show the identity of its owners. It is prominently used for tracing copyright infringements and for banknote authentication.

License: MIT License

JavaScript 97.67% HTML 2.33%

web-digital-watermarking's Introduction

web-digital-watermarking

A digital watermark is a kind of marker covertly embedded in a noise-tolerant signal such as an audio, video or image data. It is typically used to identify ownership of the copyright of such signal. "Watermarking" is the process of hiding digital information in a carrier signal; the hidden information should, but does not need to, contain a relation to the carrier signal. Digital watermarks may be used to verify the authenticity or integrity of the carrier signal or to show the identity of its owners. It is prominently used for tracing copyright infringements and for banknote authentication.

package install

npm install web-digital-watermarking

This package is only used for the Web, if you are using Node.js, use node-digital-watermarking.

Sample Use

const dw = require('web-digital-watermarking');
const srcImageUrl = 'http://localhost:8080/srcImg.png'
let watermarkText = "github.com/zy445566";
let fontSize = 1.1;
async function run() {
    const enCodeImageUrl = await dw.transformImageUrlWithText(srcImageUrl, watermarkText, fontSize);
    const enCodeImageElement = document.createElement('img');
    enCodeImageElement.src = enCodeImageUrl;
    document.body.appendChild(enCodeImageElement)
    const deCodeImageUrl = await dw.getTextFormImageUrl(enCodeImageUrl);
    const deCodeImageElement = document.createElement('img');
    deCodeImageElement.src = deCodeImageUrl;
    document.body.appendChild(deCodeImageElement)
}
run();

web-digital-watermarking's People

Contributors

zy445566 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.