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 14445CE75 for ; Tue, 5 Jun 2012 12:49:25 +0000 (UTC) Received: (qmail 73906 invoked by uid 500); 5 Jun 2012 12:49:23 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 73760 invoked by uid 500); 5 Jun 2012 12:49:23 -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 73424 invoked by uid 99); 5 Jun 2012 12:49:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 12:49:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 32B9A1402B8 for ; Tue, 5 Jun 2012 12:49:23 +0000 (UTC) Date: Tue, 5 Jun 2012 12:49:23 +0000 (UTC) From: "Simon MacDonald (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1479121396.39309.1338900563210.JavaMail.jiratomcat@issues-vm> In-Reply-To: <406244681.36163.1338843263316.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (CB-860) MediaFile.getFormatData broken for Image from Capture 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-860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon MacDonald resolved CB-860. -------------------------------- Resolution: Fixed Fix Version/s: 1.8.0 The fix for "CB-837: CaptureCB - mediaFile.fullPath does not resolve to file" added file:// to the full path of the returned media object. When you do getFormatData for audio or video it is okay but for image you need to strip the file:// from the path first. This fix does the stripping and also recycles the bitmap that is used in order to get the image's width and height. > MediaFile.getFormatData broken for Image from Capture > ----------------------------------------------------- > > Key: CB-860 > URL: https://issues.apache.org/jira/browse/CB-860 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 1.8.0 > Environment: Seen on Android 2.2.3 and 3.1. Tested using incubator-cordova-android.git tagged "master" by macdonst 48 hrs ago. > Reporter: Libby Baldwin > Assignee: Simon MacDonald > Fix For: 1.8.0 > > > After capturing image like: > navigator.device.capture.captureImage(captureImageSuccess, captureError, {limit: 1}); > attempt to get format data from image like: > mediaFiles[i].getFormatData(formatSuccess, formatError); > Error callback is always called, error.code is undefined. > Same code works using Cordova 1.6.1. The getFormatData call works on Audio and Video. -- 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