From issues-return-97586-apmail-cordova-issues-archive=cordova.apache.org@cordova.apache.org Wed Oct 3 22:44:02 2018 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 5E22A1D91F for ; Wed, 3 Oct 2018 22:44:02 +0000 (UTC) Received: (qmail 21102 invoked by uid 500); 3 Oct 2018 22:44:02 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 20996 invoked by uid 500); 3 Oct 2018 22:44:02 -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 20973 invoked by uid 99); 3 Oct 2018 22:44:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2018 22:44:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CD59FC0368 for ; Wed, 3 Oct 2018 22:44:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id iDg-qg6UySZh for ; Wed, 3 Oct 2018 22:44:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E78BF5F3F2 for ; Wed, 3 Oct 2018 22:44:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7222FE111B for ; Wed, 3 Oct 2018 22:44:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3285E25541 for ; Wed, 3 Oct 2018 22:44:00 +0000 (UTC) Date: Wed, 3 Oct 2018 22:44:00 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-11714) Camera plugin for windows does not properly set content-type when selecting JPG->PNG 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-11714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637576#comment-16637576 ] ASF subversion and git services commented on CB-11714: ------------------------------------------------------ Commit dc7395410890be9e918e6a7cd05bc2dfabcd24fc in cordova-plugin-camera's branch refs/heads/master from [~brodybits] [ https://gitbox.apache.org/repos/asf?p=cordova-plugin-camera.git;h=dc73954 ] Merge pull request #242 from DisruptiveMind/master CB-11714: (windows) added check for encoding in savePhoto() without height/width > Camera plugin for windows does not properly set content-type when selecting JPG->PNG > ------------------------------------------------------------------------------------ > > Key: CB-11714 > URL: https://issues.apache.org/jira/browse/CB-11714 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Affects Versions: Master > Environment: Windows 10 > Reporter: Tyler Pham > Priority: Major > Labels: easyfix, triaged, windows > > When selecting a JPG with encodingType = Camera.EncodingType.PNG, the resizeImage() will not modify the target content type when converting canvas.toDataURL(...) -- the content-type will still be image/jpeg but with a .png extension which will cause the browser to not render to image and issue an error. > Possibly related to: CB-8618 > I have created a small fix at: > https://github.com/DisruptiveMind/cordova-plugin-camera/tree/fix-windows-content-type -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org