Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8ECE6DC7F for ; Thu, 5 Jul 2012 13:39:35 +0000 (UTC) Received: (qmail 86757 invoked by uid 500); 5 Jul 2012 13:39:35 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 86734 invoked by uid 500); 5 Jul 2012 13:39:35 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 86721 invoked by uid 99); 5 Jul 2012 13:39:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2012 13:39:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id A021E1402B8 for ; Thu, 5 Jul 2012 13:39:34 +0000 (UTC) Date: Thu, 5 Jul 2012 13:39:34 +0000 (UTC) From: "Simon MacDonald (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <57449064.8465.1341495574658.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (CB-1008) Camera with targetHeight, targetWidth loses image aspect ratio MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Simon MacDonald created CB-1008: ----------------------------------- Summary: Camera with targetHeight, targetWidth loses image aspect ratio Key: CB-1008 URL: https://issues.apache.org/jira/browse/CB-1008 Project: Apache Cordova Issue Type: Bug Components: Android Affects Versions: 1.9.0 Reporter: Simon MacDonald Assignee: Simon MacDonald Using Camera on Android (2.2.x) with PhoneGap 1.9.0, and setting the targetHeight and targetWidth results in an image resized to these dimensions, losing aspect ratio. I'd expected the image to resize to fit within target size, maintaining aspect ratio. For example: an image originally 2000 x 3000 px with targetHeight = 600, targetWidth = 600 returns a 600 x 600 px image instead of a 400 x 600 px image. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira