GithubHelp home page GithubHelp logo

Comments (5)

grassick avatar grassick commented on June 17, 2024

In our application, we usually wanted landscape photos, so this was to get around the problem of people that have auto-rotate turned off.

Full sensor does seem like a better approach (assuming the photo orientation still works right). I'd be happy to merge a pull request if you can make the change?

from cordova-plugin-camera-foreground.

jpalermo avatar jpalermo commented on June 17, 2024

I'm working on a pull request for this.

There are a number of options in the cordova camera plugin that aren't currently brought into the foreground plugin. For example the correctOrientation option.

I could copy the code in to support these, but I'm thinking it might be cleaner if I just declare a dependency on the original plugin, and then override certain methods to render the foreground camera layout.

That way all the code in onActivityResult can stay where it is.

Thoughts on this?

from cordova-plugin-camera-foreground.

grassick avatar grassick commented on June 17, 2024

Can you declare dependencies on a specific plugin version? If not, things
could get really messy as they change the internals of the camera plugin
over time, and in that case, it might be better to have a snapshot of the
code (but isolated for easy future upgrades).

On Mon, Mar 3, 2014 at 10:01 AM, Joseph Palermo [email protected]:

I'm working on a pull request for this.

There are a number of options in the cordova camera plugin that aren't
currently brought into the foreground plugin. For example the
correctOrientation option.

I could copy the code in to support these, but I'm thinking it might be
cleaner if I just declare a dependency on the original plugin, and then
override certain methods to render the foreground camera layout.

That way all the code in onActivityResult can stay where it is.

Thoughts on this?

Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-36517605
.

from cordova-plugin-camera-foreground.

jpalermo avatar jpalermo commented on June 17, 2024

http://cordova.apache.org/docs/en/3.4.0/plugin_ref_spec.md.html#Plugin%20Specification

The plugin spec doesn't allow you to specify a dependency from the plugin repository, but you can use a url an version. So for instance this would work for locking it down to the current 0.2.7 release:

<dependency 
    id="org.apache.cordova.camera" 
    url="https://github.com/apache/cordova-plugin-camera" 
    commit="r0.2.7" />

Which seems like it would work pretty well.

from cordova-plugin-camera-foreground.

grassick avatar grassick commented on June 17, 2024

Ok, seems like a good idea to me. As long as you can override the needed
methods, it seems a pretty elegant way to do it. I say go for it. It will
be really nice to have an improved camera plugin!

On Wed, Mar 5, 2014 at 7:54 AM, Joseph Palermo [email protected]:

http://cordova.apache.org/docs/en/3.4.0/plugin_ref_spec.md.html#Plugin%20Specification

The plugin spec doesn't allow you to specify a dependency from the plugin
repository, but you can use a url an version. So for instance this would
work for locking it down to the current 0.2.7 release:

Which seems like it would work pretty well.

Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-36739064
.

from cordova-plugin-camera-foreground.

Related Issues (11)

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.