GithubHelp home page GithubHelp logo

Background Image? about jsignature HOT 2 CLOSED

willowsystems avatar willowsystems commented on June 16, 2024
Background Image?

from jsignature.

Comments (2)

dvdotsenko avatar dvdotsenko commented on June 16, 2024

Because of reliance on FlashCanvas for support of IE 8 and older things are complicated.

FlashCanvas does not support "area" transfer for images. It only supports whole-image load, and only in cases where the source image has a src attribute that is meaningful to Flash.

Technically nothing stops you from loading an image into the canvas element that jSignature creates. However there is absolutely no way to make it work reliably across major browsers, especially if you take mobile browsers into account.

So, while you can make it work, you cannot make it work reliably. For that reason, no official image background API is exposed in jSignature.

If you really want to try to make it work, read the entirety of this thread:
https://groups.google.com/d/topic/flashcanvas/42_3oD4b-wo/discussion

And this post specifically:
https://groups.google.com/d/msg/flashcanvas/42_3oD4b-wo/8-MTd0Juy9gJ

Plan:

  1. Initialize jSignature
  2. Inject an image into it
  3. Make user sign
  4. Use jSignature's "image" export format to get it all back, or just use regular canvas API for the same.

from jsignature.

nozpheratu avatar nozpheratu commented on June 16, 2024

Thank you for the point in the right direction, I'll update if I ever manage to get anything working.

from jsignature.

Related Issues (20)

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.