cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John M. Wargo" <jwarg...@gmail.com>
Subject Re: Camera API: correctOrientation
Date Thu, 05 Dec 2013 01:59:41 GMT
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 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 according to the orientation of the camera when the
> picture was taken.
>
>
> [1]
> https://github.com/apache/cordova-plugin-camera/blob/master/src/ios/CDVCamera.m#L455
>
>
> @purplecabbage
> risingj.com
>
>
> On Wed, Dec 4, 2013 at 5:25 PM, Josh Soref <jsoref@blackberry.com> wrote:
>
>> 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 landscape orientations for photos.
>> ---------------------------------------------------------------------
>> This transmission (including any attachments) may contain confidential
>> information, privileged material (including material protected by the
>> solicitor-client or other applicable privileges), or constitute non-public
>> information. Any use of this information by anyone other than the intended
>> recipient is prohibited. If you have received this transmission in error,
>> please immediately reply to the sender and delete this information from
>> your system. Use, dissemination, distribution, or reproduction of this
>> transmission by unintended recipients is not authorized and may be unlawful.
>>
>>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message