Comments (8)
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.
@miskiw Did you manage to make it work on Android 2.3?
from canvasresize.
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.
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.
yep pretty much...depends on your scenario... I didn't have that option
from canvasresize.
I'll try it. thanks
from canvasresize.
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.
My android is 5.1.1, can not work. The preview image is black
from canvasresize.
Related Issues (20)
- .png transparency HOT 1
- Crop doesn't Crop HOT 3
- Certain GIFs are cropped or stretched oddly HOT 3
- Very big images choke.
- Is it possible to change .png to .jpeg? HOT 2
- Question: Implement canvasResize in WordPress front end upload solution HOT 2
- jQuery Mobile 1.4 Problem HOT 1
- Save big image to server
- is possible to make this upload more than one image at a time?
- Low quality after resized
- iOS 8 canvas resize doesn't works! HOT 4
- The picture is divided on adroid UC browser?
- PNG images are croping even though crop flag is set to false HOT 2
- Error when convert image have transparent
- Warning: imagejpeg() [function.imagejpeg]: Unable to open 'uploads/570c4c99f1b14.jpg HOT 1
- .png images lose their compression?
- Image type changing to application/octet-stream after resize
- Wrong orientation 3
- Please create error callback
- Plugin Quit Rotating In 2020 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvasresize.