Comments (9)
After reading the ImageResizer.m code using Xcode, it seems you have to specify the file name on the options.
var options = {
uri: uri,
folderName: "Protonet Messenger", //mandatory for android
quality: 90,
width: 1280,
height: 1280,
fileName: 'resize.jpg' //mandatory for iOS
};
from cordova-plugin-image-resizer.
I experienced the same bug. Specifying fileName resolved it.
from cordova-plugin-image-resizer.
hmm, at least I can see something.
I have a full white image instead of the resized one
from cordova-plugin-image-resizer.
Also getting an "all white" image, also tried @duca14036 's fix, and am also getting an error save image
result.
from cordova-plugin-image-resizer.
@cataragak90 try to replace this file https://github.com/duca14036/cordova-plugin-image-resizer/blob/master/src/ios/ImageResizer.m
from cordova-plugin-image-resizer.
@duca14036 I tried your ImageResizer.m, but imageData is nil
so, callback function get no filePath.
imageRequestOptions.synchronous not working
from cordova-plugin-image-resizer.
Hi, any update on this issue?
from cordova-plugin-image-resizer.
folderName: "Protonet Messenger", //mandatory for android
fileName: 'resize.jpg' //mandatory for iOS
Thanks to "okhioktanio".
People are having same issues with this plugin after 2 years. It cost me an hour to find out fix this issue on iOS and Android.
How is it hard to write a proper documentation and throw an exception if the given parameters not valid?
IONIC team is pushing this plugin on their website with misleading documentation. Even though they say filename is optional and there is default value, you still have to set the value.
from cordova-plugin-image-resizer.
I will add that to the readme (a bit late after 2 years, but at least I do it)
from cordova-plugin-image-resizer.
Related Issues (20)
- Please add the fileName(String) option for IOS too. Currently it only supports android and windows HOT 2
- Image proportion HOT 2
- Unable to create compressed file in Android Oreo (8.0) HOT 13
- Mismatch in ID/Package name causing double addition of plugin to package.json HOT 2
- Build failing (Unknown property `ANDROID_EXIFINTERFACES_VERSION`) HOT 18
- Nested FolderName throwing exception HOT 2
- fileName parameter on iOS does not work the way it is documented? HOT 7
- Always execute the error function
- Build failure HOT 4
- Short on Time HOT 1
- build failed Could not find exifinterface.jar HOT 4
- Failed to resize an image on iOS 12.x HOT 1
- Android giving black background for transparent Images HOT 1
- Failed to fetch plugin HOT 5
- IOS gives back an empty base64 string
- Version 0.2 isn't avaliable in NPM HOT 3
- base64: true not work in Android, returns file:/// uri scheme HOT 4
- Anyone got this working using cordova-plugin-camera-preview
- Code executes synchronously. Android HOT 2
- rotating camera captured photo by -90 degree and when selected from galary 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 cordova-plugin-image-resizer.