Code Monkey home page Code Monkey logo

Comments (9)

okhioktanio avatar okhioktanio commented on August 15, 2024 16

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.

Spracto avatar Spracto commented on August 15, 2024 1

I experienced the same bug. Specifying fileName resolved it.

from cordova-plugin-image-resizer.

cataragak90 avatar cataragak90 commented on August 15, 2024 1

hmm, at least I can see something.
I have a full white image instead of the resized one

from cordova-plugin-image-resizer.

wstrinz avatar wstrinz commented on August 15, 2024 1

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.

duca14036 avatar duca14036 commented on August 15, 2024

@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.

kaz-tk avatar kaz-tk commented on August 15, 2024

@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.

howawong avatar howawong commented on August 15, 2024

Hi, any update on this issue?

from cordova-plugin-image-resizer.

aligorkem avatar aligorkem commented on August 15, 2024

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.

JoschkaSchulz avatar JoschkaSchulz commented on August 15, 2024

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)

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.