Re: Camera API vs Capture API

2014-01-23 Thread Marcel Kinard
+1. Users are confused regarding what to use when.

Re: Camera API vs Capture API

2014-01-21 Thread Shazron
+1 on Camera API needing audit/rewrite or us updating the Media Capture plugin with the new w3c API and adding our extensions to it for Camera (somehow) On Tue, Jan 21, 2014 at 6:24 PM, Andrew Grieve wrote: > Agree that Camera pretty much needs a re-write (or a good audit). The > num

Re: Camera API vs Capture API

2014-01-21 Thread Andrew Grieve
not with some irony that the Media Capture API as implemented > in ChromeView is a direct descendant of our Capture API which is now out of > date. > > The inventory: > > - Camera API Plugin (non standard but offers more flexability than the W3C > spec) > - Capture API P

Re: Camera API vs Capture API

2014-01-21 Thread Brian LeRoux
it is perhaps not with some irony that the Media Capture API as implemented in ChromeView is a direct descendant of our Capture API which is now out of date. The inventory: - Camera API Plugin (non standard but offers more flexability than the W3C spec) - Capture API Plugin (out of date thus non

Camera API vs Capture API

2014-01-21 Thread Joe Bowser
Hey So, right now on KitKat, the Camera API is super borked. You can't save to album, since the Media Provider is giving paths that don't exist, and also you can't actually pull from the album since they changed the URI encoding and made it a lot more difficult to move from a Java

Re: Camera API: correctOrientation

2013-12-05 Thread John M. Wargo
Here's the test app: https://github.com/johnwargo/camera_correctOrientation I ran some tests on Android and orientation is 1 (instead of 0 on iOS) I put some screen shots in the repository to show what I'm seeing. On 12/5/2013 2:16 PM, purplecabbage wrote: Looking at the code for ios, correctO

Re: Camera API: correctOrientation

2013-12-05 Thread purplecabbage
Looking at the code for ios, correctOrientation doesn't modify exif, it rotates image bits. Can you share your test app John? Sent from my iPhone > On Dec 5, 2013, at 7:42 AM, "John M. Wargo" wrote: > > That makes sense. As I only have this iOS 7 device, can someone do a quick > test on an

Re: Camera API: correctOrientation

2013-12-05 Thread John M. Wargo
That makes sense. As I only have this iOS 7 device, can someone do a quick test on an older version of the OS? On 12/5/2013 9:51 AM, Andrew Grieve wrote: One explanation is that the iOS camera now always rotates the image for you? On Thu, Dec 5, 2013 at 9:11 AM, John M. Wargo wrote: Jesse,

Re: Camera API: correctOrientation

2013-12-05 Thread Andrew Grieve
One explanation is that the iOS camera now always rotates the image for you? On Thu, Dec 5, 2013 at 9:11 AM, John M. Wargo wrote: > Jesse, > > I've been thinking about what you said and I'm not getting it. I created > an app that has three buttons, one takes a picture without > correctOrientati

Re: Camera API: correctOrientation

2013-12-05 Thread John M. Wargo
Jesse, I've been thinking about what you said and I'm not getting it. I created an app that has three buttons, one takes a picture without correctOrientation even defined, another sets correctOrientation to true while the last one sets correctOrientation to false. When I look at the photos on

Re: Camera API: correctOrientation

2013-12-05 Thread John M. Wargo
Jesse, Thanks for providing that information. I downloaded an EXIF property viewer and notice that with correctOrientation missing or set to false, there are 18 EXIF properties in the file. When I enable correctOrientation, another 30 EXIF properties are added to the file (for a total of 48).

Re: Camera API: correctOrientation

2013-12-04 Thread Jesse
It definitely does something, you just may not notice it. If you try to display an image you took in your app on iOS in any image viewer that does not correctly interpret exif, then the picture will still display correctly. If you remove the code, it will not. @purplecabbage risingj.com On Wed,

Re: Camera API: correctOrientation

2013-12-04 Thread John M. Wargo
I can't get it to do anything on iOS, so I think it's broken. Any chance someone can do a quick test to confirm my suspicion? Probably need to remove it from the docs if it doesn't do anything. On 12/4/2013 8:41 PM, Jesse wrote: It appears to do nothing, except on iOS. It is listed as supporte

Re: Camera API: correctOrientation

2013-12-04 Thread Andrew Grieve
I believe it was meant to be used with WebViews that don't render jpegs according to the orientation in their EXIF data. Quite possible that it solves a problem that no longer exists. If so, it would be great to get rid of it. On Wed, Dec 4, 2013 at 8:47 PM, John M. Wargo wrote: > Josh, > > Th

Re: Camera API: correctOrientation

2013-12-04 Thread John M. Wargo
Josh, That's the PhoneGap 1.7 docs you linked - when you look at the Cordova 3.2 docs (http://docs.phonegap.com/en/3.2.0/cordova_camera_camera.md.html#cameraOptions), it does not list _any_ issues with correctOrientation on Android or iOS. I expect it not to work on Windows Phone because it's

Re: Camera API: correctOrientation

2013-12-04 Thread Jesse
It appears to do nothing, except on iOS. It is listed as supported on iOS and Android, and back in 1.7, it was iOS only, Android does this: this.correctOrientation = args.getBoolean(8); iOS uses it after the image is captured, and calls imageCorrectedForCaptureOrientation [1] which rotates it acc

Re: Camera API: correctOrientation

2013-12-04 Thread Josh Soref
John wrote: > Can someone explain to me what correctOrientation is supposed to do? http://docs.phonegap.com/en/1.7.0/cordova_camera_camera.md.html Lists a bunch of platforms that don't implement it.  My guess is that some older platforms wouldn't automatically switch between portrait and landsc

Camera API: correctOrientation

2013-12-04 Thread John M. Wargo
Can someone explain to me what correctOrientation is supposed to do? I just spent the last hour or so trying everything I can think of to make this thing do its voodo on Android and iOS and I can't tell the difference between photos taken with correctOrientation : true and correctOrientation :

Re: Camera API

2013-08-28 Thread John M. Wargo
ser does not expect to be able to arbitrarily set both. -James Jong On Aug 28, 2013, at 7:15 AM, John Wargo wrote: I've got another silly question. In looking at the Camera API, I see the following: targetWidth: Width in pixels to scale image. Must be used with targetHeight. Aspect rati

Re: Camera API

2013-08-28 Thread John M. Wargo
th. -James Jong On Aug 28, 2013, at 7:15 AM, John Wargo wrote: I've got another silly question. In looking at the Camera API, I see the following: targetWidth: Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant. (Number) targetHeight: Height

RE: Camera API

2013-08-28 Thread jbo...@openmv.com
io There's cases where those 3 are useful, would be nice if it could be done client side consistently. -Original Message- From: James Jong [mailto:wjamesj...@gmail.com] Sent: Wednesday, August 28, 2013 12:05 PM To: dev@cordova.apache.org Subject: Re: Camera API Several ways we cou

Re: Camera API

2013-08-28 Thread Carlos Santana
learer. > > > > > > On 8/28/13 9:04 AM, "James Jong" wrote: > > > > > >> You're right that it could be calculated based on one or the other. > The > > >> code expects both today. I think the point is to be clear that the >

Re: Camera API

2013-08-28 Thread Shazron
aspect ratio is maintained, so that the user does not expect to be able > >> to arbitrarily set both. > >> > >> -James Jong > >> > >> On Aug 28, 2013, at 7:15 AM, John Wargo wrote: > >> > >>> I've got another silly question.

Re: Camera API

2013-08-28 Thread James Jong
>> to arbitrarily set both. >> >> -James Jong >> >> On Aug 28, 2013, at 7:15 AM, John Wargo wrote: >> >>> I've got another silly question. In looking at the Camera API, I see >>> the following: >>> >>> targetWidth: Wi

Re: Camera API

2013-08-28 Thread Ray Camden
clear that the >aspect ratio is maintained, so that the user does not expect to be able >to arbitrarily set both. > >-James Jong > >On Aug 28, 2013, at 7:15 AM, John Wargo wrote: > >> I've got another silly question. In looking at the Camera API, I see >>the

Re: Camera API

2013-08-28 Thread Max Woghiren
28, 2013, at 7:15 AM, John Wargo wrote: > > > I've got another silly question. In looking at the Camera API, I see the > following: > > > > targetWidth: Width in pixels to scale image. Must be used with > targetHeight. Aspect ratio remains constant. (Number) &

Re: Camera API

2013-08-28 Thread James Jong
Wargo wrote: > I've got another silly question. In looking at the Camera API, I see the > following: > > targetWidth: Width in pixels to scale image. Must be used with targetHeight. > Aspect ratio remains constant. (Number) > > targetHeight: Height in pixels to scale image

Camera API

2013-08-28 Thread John Wargo
I've got another silly question. In looking at the Camera API, I see the following: targetWidth: Width in pixels to scale image. Must be used with targetHeight. Aspect ratio remains constant. (Number) targetHeight: Height in pixels to scale image. Must be used with targetWidth. Aspect

Re: Selecting the front camera - Camera API

2013-01-08 Thread Jesse
This is also dependent on the developer's code being able to detect if there is a front facing camera, (or ass facing), which means it should likely happen after we finalize a capabilities api. I believe the issues Simon mentions are issues regardless. There is nothing in that issue that states t

Re: Selecting the front camera - Camera API

2013-01-08 Thread Simon MacDonald
If we don't implement a way to specify the front camera we should at least address the bugs that arrise from the users doing it themselves. Since taking a picture with a front camera gives you different orientation values than the back camera it causes problems with how the image is displayed in th

Re: Selecting the front camera - Camera API

2013-01-08 Thread Filip Maj
related: a lot of our roadmap work first depends on finalizing the cli tools, splitting out the apis, and adding plug man support for most platforms. Therefore, I see those as priorities. On 1/8/13 4:57 PM, "Shazron" wrote: >This is a multi-platform concern: >https://issues.apache.org/jira/brows

Re: Selecting the front camera - Camera API

2013-01-08 Thread Filip Maj
It's api work so I would recommend we wait until we start splitting out the apis. On 1/8/13 4:57 PM, "Shazron" wrote: >This is a multi-platform concern: >https://issues.apache.org/jira/browse/CB-1683 > >2.4.0 or we should wait for the audit?

Selecting the front camera - Camera API

2013-01-08 Thread Shazron
This is a multi-platform concern: https://issues.apache.org/jira/browse/CB-1683 2.4.0 or we should wait for the audit?