Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 305952004C8 for ; Mon, 9 May 2016 23:09:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2EE411609A8; Mon, 9 May 2016 21:09:40 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7894B16099C for ; Mon, 9 May 2016 23:09:39 +0200 (CEST) Received: (qmail 52270 invoked by uid 500); 9 May 2016 21:09:38 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 52261 invoked by uid 99); 9 May 2016 21:09:38 -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; Mon, 09 May 2016 21:09:38 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 68E68DFDE3; Mon, 9 May 2016 21:09:38 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nikhilkh@apache.org To: commits@cordova.apache.org Message-Id: <12651248a3d44050a8cde925a113ce6b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cordova-plugin-camera git commit: CB-11227 browser: Fix incorrect mime type Date: Mon, 9 May 2016 21:09:38 +0000 (UTC) archived-at: Mon, 09 May 2016 21:09:40 -0000 Repository: cordova-plugin-camera Updated Branches: refs/heads/master 57b177f3f -> af98d5741 CB-11227 browser: Fix incorrect mime type This closes #211 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/af98d574 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/af98d574 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/af98d574 Branch: refs/heads/master Commit: af98d57417514cc1f3ecd89d0c1f4e4319b139cb Parents: 57b177f Author: Keith M Authored: Sat May 7 19:51:58 2016 -0400 Committer: Nikhil Khandelwal Committed: Mon May 9 14:09:30 2016 -0700 ---------------------------------------------------------------------- src/browser/CameraProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/af98d574/src/browser/CameraProxy.js ---------------------------------------------------------------------- diff --git a/src/browser/CameraProxy.js b/src/browser/CameraProxy.js index 8f95c6f..23ace0b 100644 --- a/src/browser/CameraProxy.js +++ b/src/browser/CameraProxy.js @@ -69,7 +69,7 @@ function capture(success, errorCallback) { canvas.getContext('2d').drawImage(video, 0, 0, 320, 240); // convert image stored in canvas to base64 encoded image - var imageData = canvas.toDataURL('img/png'); + var imageData = canvas.toDataURL('image/png'); imageData = imageData.replace('data:image/png;base64,', ''); // stop video stream, remove video and button. --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org