Git Product home page Git Product logo

Comments (5)

ddomingues avatar ddomingues commented on July 18, 2024 1

Hi @lapisanlangit! Yesterday I integrated this plugin on my ionic app, which works very well. Try to follow the get start, then try to run ionic plugin add cordova-plugin-crop and use the promise syntax plugins.crop.promise. I'm using together the cordova-plugin-camera. See the example using Typescript:

Camera.getPicture({
        quality: 100,
        sourceType: sourceType
    })
      .then(
        imageURI => {
          plugins.crop.promise(imageURI, {quality: 100})
            .then(
              newPath => {
                console.log(newPath);
              },
              err =>  console.error(err)
            );
        },
        err => console.error(err)
      );

from cordova-plugin-crop.

ddomingues avatar ddomingues commented on July 18, 2024

Congratulations @jeduan for this abstraction 💯 ⭐

from cordova-plugin-crop.

RupenAnjaria avatar RupenAnjaria commented on July 18, 2024

@ddomingues May I please know what exactly you are trying to do? are you taking picture from camera and them cropping it? What if I want user to crop it?

from cordova-plugin-crop.

piyushdutta avatar piyushdutta commented on July 18, 2024

@RupenAnjaria just change the imageURI to a given path.
i.e if he wants to pick from gallery let him pick it from the photo album or some defined path

from cordova-plugin-crop.

 avatar commented on July 18, 2024

It is not working in ios. can anyone help me out why it is not working in ios?

from cordova-plugin-crop.

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.