GithubHelp home page GithubHelp logo

canvas-toblob.js's Introduction

Hi 👋, I'm Eli

  • 🔭 I’m currently working on Transcend Consent Manager
  • 🕊 I write open source software in my free time
  • 💬 Ask me about web security

My Stats

Goals

  • 🌎 Defeat my enemies
  • 🧠 Live until the heat death of our local galactic group through brain scanning and simulation
  • 🌌 Optimize galactic entropy to keep us all alive as long as possible

Enemies

☠️  Mortality    ◦    🤔  Ignorance    ◦    😡  Hate    ◦    😔  Ennui


Github stats

canvas-toblob.js's People

Contributors

david-risney avatar dsamarin avatar eligrey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

canvas-toblob.js's Issues

Doesn't work in Firefox

In Firefox, canvas.toBlob() returns canvas.mozGetAsFile() instead of passing it to callback(). It also looks like callback() is passed an undefined value if there's no Uint8Array.

filename?

I'm not sure if this is a issue per se, but I'm not seeing where to include / generate a filename? If I'm using this within a BB10 app to cache images in the app space will every image be called 'blob.png'?

Deprecated

In Chrome 21, I get the following warnings:

BlobBuilder is deprecated. Use "Blob" constructor instead.
ArrayBuffer values are deprecated in Blob Constructor. Use ArrayBufferView instead.

getting error on .toBlob

I am getting error "undefined is not a function" on .toBlob.

what are the possible solutions to resolve this?

No package.json file

I need to get this package via npm, but It cannot download because there is no package.json file.

SecurityError in chrome.

I am using Chrome Version 44.0.2403.125 (64-bit) on OS X El Capitan

Executing .toBlob() results in following error:
Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.

Safari Security error

Security issue error while running on safari

EXCEPTION : Uncaught(in promise) . SecurityError (DOM Exception 18) The operation is insecure
toDataURL(@ native code)

This is probably because the canvas.toDataURL raises a security issue in Safari

iPhone 12.1

I have a program that crops images and then saves them to a file. Everything was working but it seems the last update for the iPhone (12.1.2), it's acting up.

$('#image').cropper('getCroppedCanvas').toBlob(function (blob) { }

Using the above to convert a cropped image to blob, it seems to work on the first upload using an iPhone but after that, "blob" is always null and it fails. This seems to only be the case for high res images though. Everything seems to work fine with lower res, and it only seems to be a problem with iPhones using the new software update.

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.