GithubHelp home page GithubHelp logo

Android 2.3 support about canvasresize HOT 8 CLOSED

miskiw avatar miskiw commented on July 19, 2024
Android 2.3 support

from canvasresize.

Comments (8)

benbro avatar benbro commented on July 19, 2024

I also have this problem.
Is it possible to make it work on Android 2.3 or at least provide less functionality but without errors?

from canvasresize.

benbro avatar benbro commented on July 19, 2024

@miskiw Did you manage to make it work on Android 2.3?

from canvasresize.

miskiw avatar miskiw commented on July 19, 2024

I was able to make it work with PhoneGap's implementation of FileReader. PhoneGap exposes it's own FileReader API which mimics the HTML5 standard exactly so it can be used on 2.3 devices.

No luck with native HTML5 though (not possible)

from canvasresize.

benbro avatar benbro commented on July 19, 2024

This is the part that failing?
https://github.com/gokercebeci/canvasResize/blob/master/canvasResize.js#L246

In that case I can check for FileReader as you suggested and if it is not supported just send the image as is:

if (window.FileReader) {
//use canvasResize
} else {
//send the image as is
}

from canvasresize.

miskiw avatar miskiw commented on July 19, 2024

yep pretty much...depends on your scenario... I didn't have that option

from canvasresize.

benbro avatar benbro commented on July 19, 2024

I'll try it. thanks

from canvasresize.

vsymmitch avatar vsymmitch commented on July 19, 2024

@miskiw:

How did you get PhoneGap's implementation of FileReader to work with 2.3 devices? When I try the full example listed in the FileReader section of the online PhoneGap API documentation

 http://docs.phonegap.com/en/3.1.0/cordova_file_file.md.html#File

the call to window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); hangs.

Thanks.

from canvasresize.

notecode avatar notecode commented on July 19, 2024

My android is 5.1.1, can not work. The preview image is black

from canvasresize.

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.