{ "id": "122445", "key": "TIMOB-15746", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15716", "description": "2013 Sprint 25 API", "name": "2013 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2013-12-13" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-12-10T20:33:20.000+0000", "created": "2013-11-14T02:03:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "module_media", "qe-testadded" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-08-14T20:35:34.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\n Blob which returned by toImage Method has undefined mimeType in Android. In iOS is working fine. \r\n\r\nh4. Steps to reproduce\r\n1. Create a new mobile project\r\n2. Add support for android\r\n3. Paste the code into app.js\r\n{code:javascript}\r\nvar view = Ti.UI.createView({\r\n width : 100 ,\r\n height :100,\r\n backgroundColor:'blue'\r\n});\r\nvar blob = view.toImage();\r\nalert('blob.width:' + blob.width +\r\n '\\n blob.height:' + blob.height +\r\n '\\n blob.mimeType:' + blob.mimeType);\r\n{code}\r\n\r\nh4. Expected Behavior:\r\n{panel:title=Expected Alert Message}\r\nblob.width : 100\r\nblob.height : 100\r\nblob.mimeType : image/png\r\n{panel}\r\n\r\nh4. Actual Behavior:\r\niOS work properly, Buy Android alert below message\r\n{panel:title=Actual Alert Message}\r\nblob.width : 100\r\nblob.height : 100\r\nblob.mimeType : undefined\r\n{panel}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android : Blob which returned by toImage Method has undefined mimeType (parity issue)", "creator": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "subtasks": [], "reporter": { "name": "yomybaby", "key": "yomybaby", "displayName": "Jong Eun Lee", "active": true, "timeZone": "Asia/Tokyo" }, "environment": "Titanium SDK 3.1.3.GA\r\nNexus 5 (Android 4.4)\r\niPhone 5 (7.0.3)\r\niPhone Simulator (7.0) ", "comment": { "comments": [ { "id": "280357", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added mimetype to the krollDict that is returned\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4999", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-20T18:20:41.000+0000", "updated": "2013-11-20T18:20:41.000+0000" }, { "id": "301380", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue.\r\nWorking as expected.\r\nGetting correct mimeType using toImage Method for blob Object on both Android and iOS.\r\n\r\nAppc-Studio:3.2.3.201404162038\r\nsdk:3.3.0.v20140417173316\r\nacs:1.0.14\r\nalloy:1.3.1\r\nnpm:1.3.2\r\ntitanium:3.2.3-beta\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Nexus7(v4.4.2),Iphone5(v7.1)\r\n\r\nHence closing the issue.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-18T05:57:02.000+0000", "updated": "2014-04-18T05:57:02.000+0000" }, { "id": "317282", "author": { "name": "kwabford", "key": "kwabford", "displayName": "Kwab Fordjour", "active": true, "timeZone": "America/New_York" }, "body": "Has the fix been released in 3.3.0? I am still seeing this issue on my Samsung S4. Can anyone confirm that this fix is working on Samsung devices? From my experience Samsung butchers Android (especially when it comes image media) but since they're such a major player we need this work. \r\n\r\nI think this issue should be reopened or let me know how I can get the fix.\r\n\r\nDevice: Samsung Galaxy S4 SGH-I337M\r\nAndroid Version: 4.4.2\r\n\r\nEnvironment:\r\nTitanium Studio : 3.3.0.201407100905\r\nTitanium SDK : 3.3.0.GA \r\nCLI : 3.3.0\r\nAlloy: 1.4.1\r\n\r\nMac OSX 10.9.4\r\n", "updateAuthor": { "name": "kwabford", "key": "kwabford", "displayName": "Kwab Fordjour", "active": true, "timeZone": "America/New_York" }, "created": "2014-08-06T14:50:21.000+0000", "updated": "2014-08-06T14:50:21.000+0000" }, { "id": "318717", "author": { "name": "kwabford", "key": "kwabford", "displayName": "Kwab Fordjour", "active": true, "timeZone": "America/New_York" }, "body": "Never mind. I just had to change the Titanium SDK in my tiapp.xml file to 3.3.0.", "updateAuthor": { "name": "kwabford", "key": "kwabford", "displayName": "Kwab Fordjour", "active": true, "timeZone": "America/New_York" }, "created": "2014-08-14T20:35:34.000+0000", "updated": "2014-08-14T20:35:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }