Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7793218154 for ; Fri, 16 Oct 2015 23:54:05 +0000 (UTC) Received: (qmail 33209 invoked by uid 500); 16 Oct 2015 23:54:05 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 33180 invoked by uid 500); 16 Oct 2015 23:54:05 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 33158 invoked by uid 99); 16 Oct 2015 23:54:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2015 23:54:05 +0000 Date: Fri, 16 Oct 2015 23:54:05 +0000 (UTC) From: "Richard B Knoll (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-8913) [Windows] Camera picture can be out of shape when resized MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961549#comment-14961549 ] Richard B Knoll commented on CB-8913: ------------------------------------- When you say out of shape, are you referring to the wrong orientation? That is, landscape photos appearing in portrait and vice versa? Or, are you referring to the width/height not matching what you put in the camera options? targetWidth and targetHeight don't actually specify the size of an image. Instead, it is easier to think of them as specifying a maximum bounding box for the image to fit in (aspect ratio is always maintained and images will not be scaled up). For example, specifying {{targetWidth:1000}} and {{targetHeight:1000}} and inserting a 200x200 image would result in a 200x200 image in your app. Conversely, specifying {{targetWidth:100}} and {{targetHeight:200}} for that same image will make the image in your app be 100x100 (it is constrained by the lower dimension). If that isn't your issue, Would you mind posting some of the code you are using? > [Windows] Camera picture can be out of shape when resized > --------------------------------------------------------- > > Key: CB-8913 > URL: https://issues.apache.org/jira/browse/CB-8913 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin Camera > Affects Versions: 3.4.0 > Reporter: Olivier VERMONT > Labels: camera, out_of_shape, ratio, resize > > When targetHeight and/or targetWidth are used, depending on landscape/portrait mode, resulting picture can be completly out of shape. > There is something to do concerning aspect ratio as it is done in CameraLauncher.java (calculateAspectRatio) inside Android version of Camera plugin. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org