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 EA9FF18DEB for ; Thu, 10 Mar 2016 20:41:36 +0000 (UTC) Received: (qmail 99070 invoked by uid 500); 10 Mar 2016 20:41:36 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 99035 invoked by uid 500); 10 Mar 2016 20:41:36 -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 99018 invoked by uid 99); 10 Mar 2016 20:41:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 20:41:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EE2D6DFB8A; Thu, 10 Mar 2016 20:41:35 +0000 (UTC) From: omefire To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-plugin-camera pull request: [iOS] Major refactor Content-Type: text/plain Message-Id: <20160310204135.EE2D6DFB8A@git1-us-west.apache.org> Date: Thu, 10 Mar 2016 20:41:35 +0000 (UTC) Github user omefire commented on a diff in the pull request: https://github.com/apache/cordova-plugin-camera/pull/185#discussion_r55746051 --- Diff: src/ios/CDVCamera.m --- @@ -145,9 +198,38 @@ - (void)takePicture:(CDVInvokedUrlCommand*)command [self.commandDelegate runInBackground:^{ CDVPictureOptions* pictureOptions = [CDVPictureOptions createFromTakePictureArguments:command]; + + /* + FIXME #1 + What to do about quality? + If the option is set and the image is retrieved from the PhotoLibrary or SavedAlbum with a NATIVE_URI, no editing, + and is not saved to the photo album, then we return the "wrong" image. + However, the doc says "quality of the **saved** image", so it might be fine. + */ + /* + FIXME #2 + The doc says: "Rotate the image to correct for the orientation of the device **during capture**." + Is capture <=> sourceType == CAMERA ? + */ + // Check for option compatibility + BOOL isDestinationNativeUri = (pictureOptions.destinationType == DestinationTypeNativeUri); + + BOOL needsResize = [self needsResize:pictureOptions]; --- End diff -- Please, change 'selft' => 'weakSelf". possible retain cycle. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org