Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ABEE21037E for ; Thu, 5 Dec 2013 14:52:00 +0000 (UTC) Received: (qmail 7524 invoked by uid 500); 5 Dec 2013 14:52:00 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 7329 invoked by uid 500); 5 Dec 2013 14:52:00 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 7315 invoked by uid 99); 5 Dec 2013 14:51:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 14:51:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of agrieve@google.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Dec 2013 14:51:55 +0000 Received: by mail-pb0-f41.google.com with SMTP id jt11so26161551pbb.0 for ; Thu, 05 Dec 2013 06:51:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=GlnK1zkXDO6LneM0WfbKd0YQdeRnHya5FTnFc/Ymk8Y=; b=Ysia/5hVR90YKGG8jKoNbdsTQfzd9UYrFw5t3AcoOM5rtbt74e6cBQZdP5EWnAJZzo /IArrO0YsRyqxWkTDpji1SiwXzPruNqVQEcIrev+CeyFAaXfDckKvn0yTK+PXh2fcoLO VHNubWUx4jtaleNaTp74YcTh7fzpeOaWaT7T66S6RLJ99k2LCDupRAq90EhTHkrbE4fi es0u3Sz2Xh7hMigS7ga3lv3JhSB6PnNI9F3CIdXVtiy0jSLNaU2bwKKbN5NGWTzTNnnI i1GOG/KXb6bg7RupZiBU7d+9MmUfq6C80oQG3Wndqcju7LhzTJ9+6j3yZ7W7Uz3b2feo GC9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=GlnK1zkXDO6LneM0WfbKd0YQdeRnHya5FTnFc/Ymk8Y=; b=Cljf1yQoLmM7qPQIHYVGCM3N8Wh5TUfrS5jTWXx8qIAfYL0bOUocpAG6w8dQdBK1jN U5iWRhsLIwm9RI8IgE16MZdEzkV723GGkDZQ45/e+azljykAE73ItspqHNRQAh46ZKjP 1/I0ed2X5oIHFduYCO5chQ+lHHi+WdO97LNBA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=GlnK1zkXDO6LneM0WfbKd0YQdeRnHya5FTnFc/Ymk8Y=; b=YHenDdT1/ShenH4WakpY2jbU8gCmqvmdIV8O56G2q/IZ49kks4Eu0eW3yzq4edKI6P Ax4g/zcMOYHACQwieQ03yAbEFRpumZhCrS9gEV2WRJrHohwMc62QRHkBeFXjM1gbfhZQ cpv8znaZT5X8cCDX3MjGib0psBJhSMlrVXTg4rOpbwunv/TtUyu3Hq5CI3nYmMoYLG5d agX+J9PKgkeMlm3sYNMLJlNopUrJLT9EOFT1bx1ZbUTZhsZABP/xYdJgooGQfG+FAtJL 0Mny9+oi4MmV+nYZ7nRowtDLdGkOWYUNdj3aXbS39crM2ZdMt2++LaEMnXl10q7+KpnA pkkQ== X-Gm-Message-State: ALoCoQkktW6GoSqgAO4wvQUW5j8aq7SdPMmOc7YG7hYNj13elOkNSQ7GPwApAhrYeaKmzVYp8hl01kwBd4aBnw6pAfNkfgneScBXe+zdT/FCpwDRmL7VPPtiNx66YnjdU5f8iOUQPA2E82cZzPMQok2PD4ZiwUjmAGozpaqwnWsmZZ+6T2+KkG+YMWVV16zJC1jtmmKRi9syDfV9k7SKVoi6x185N3pPzQ== X-Received: by 10.66.11.68 with SMTP id o4mr53475068pab.54.1386255094879; Thu, 05 Dec 2013 06:51:34 -0800 (PST) MIME-Version: 1.0 Sender: agrieve@google.com Received: by 10.68.136.35 with HTTP; Thu, 5 Dec 2013 06:51:14 -0800 (PST) In-Reply-To: <52A08974.4070608@gmail.com> References: <20131205012550.24461460.45883.6711@blackberry.com> <529FDE0D.7000508@gmail.com> <52A08974.4070608@gmail.com> From: Andrew Grieve Date: Thu, 5 Dec 2013 09:51:14 -0500 X-Google-Sender-Auth: -9tQ7Fr-MS_VvOzPXuQIvU1GRfA Message-ID: Subject: Re: Camera API: correctOrientation To: dev Content-Type: multipart/alternative; boundary=bcaec520e8f580437804eccaaaf8 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec520e8f580437804eccaaaf8 Content-Type: text/plain; charset=ISO-8859-1 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 > correctOrientation even defined, another sets correctOrientation to true > while the last one sets correctOrientation to false. > > When I look at the photos on my Mac or in Windows Explorer, all three > photos have the same orientation. > > When I look at the EXIF properties in an EXIF editor, all three photos > have orientation set the same value. The editor says its 0, but the field > seems to be a two byte value which contains 00 01. > > Since I'm comparing three photos at the same time, one of them should be > turned on its side (the one where correctOrientation is true) while the > other two are displayed in portrait orientation. That's expected behavior > based on what you say below, but that's not what's happening for me. > > I'm still leaning toward this particular option being broken. > > > On 12/4/2013 9:04 PM, Jesse wrote: > >> 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, Dec 4, 2013 at 5:59 PM, John M. Wargo wrote: >> >> 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 >>>> 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. >>>>> >>>>> >>>>> >>>>> > --bcaec520e8f580437804eccaaaf8--