{ "id": "129699", "key": "TIMOB-16882", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-27T22:13:56.000+0000", "created": "2014-04-25T21:35:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_imageview", "parity", "qe-manualtest", "qe-testadded", "supportTeam" ], "versions": [ { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" } ], "issuelinks": [ { "id": "40374", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "135486", "key": "TIMOB-17567", "fields": { "summary": "Android: Converting a blob into a valid image does not maintain dimensions", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41397", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "136374", "key": "TIMOB-17692", "fields": { "summary": "iOS: Cannot load saved images anymore", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "41404", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "136771", "key": "TIMOB-17736", "fields": { "summary": "iOS: Titanium.Filesystem.File.write - Images don't save properly", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-09-19T22:20:06.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue description\r\nLooking for a cross-platform way to create image thumbnail files asynchronously. Titanium is able to read an image file asynchronously into a buffer and then a blob. If we assign that blob to the image property of an ImageView, it displays as I expect. However, the blob is not recognised as an image by any of the Ti.Blob.image* methods. The blob has a mime type of \"application/octet-stream\" and a height and width of 0. Meanwhile Android is able to get height and width properly.\r\n\r\nh6.Steps to reproduce\r\n# Launch sample app. You can see that the fishImage ImageView loads its image directly from a file path in its \"image\" property.\r\n# earthImage is loaded in index.js asynchronously using a file stream. Once the file contents are read completely, they are assigned to the image property of $.earthImage. \r\n# Notice, the blob you get as a result of \"earthBuffer.toBlob()\" can't be used for any other image manipulation (e.g. creating thumbnails). It doesn't have a valid mimeType, height, or width on iOS. \r\n\r\nE.G.\r\n{code}\r\n$.earthImage.image = earthBuffer.toBlob();\r\nTi.API.info( $.earthImage.image.height + ' . '+ $.earthImage.image.width + ' . '+ $.earthImage.image.mimeType);\r\n{code}\r\n\r\nh6.Android\r\n{code}\r\n04-24 15:11:03.812: I/TiAPI(28395): 1600 . 2560 . application/octet-stream\r\n{code}\r\n\r\nh6.iOS\r\n{code}\r\n[INFO] : 0 . 0 . application/octet-stream\r\n{code}", "attachment": [ { "id": "47717", "filename": "ImageBufferTest_Appcelerator.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-25T21:35:48.000+0000", "size": 8617039, "mimeType": "application/zip" }, { "id": "47737", "filename": "TIMOB-16882.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-04-28T21:22:14.000+0000", "size": 5952811, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Converting a blob into a valid image does not maintain dimensions", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 7.1\r\nAPI Levels 11 - 19", "closedSprints": [ { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 }, { "id": 175, "state": "closed", "name": "2014 Sprint 17 SDK", "startDate": "2014-08-21T22:07:00.000Z", "endDate": "2014-08-30T00:00:00.000Z", "completeDate": "2014-09-02T19:56:25.517Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "305627", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marked for future release, so removing due date. Please re-add if this is incorrect.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-20T00:01:09.000+0000", "updated": "2014-05-20T00:01:09.000+0000" }, { "id": "313304", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5901", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-10T19:20:02.000+0000", "updated": "2014-07-10T19:20:02.000+0000" }, { "id": "319265", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening the issue as issue seems to appear incorrect on Android.\r\nVerified with environment:\r\n\r\nAppcelerator Studio:3.4.0.201408180158\r\nSdk:3.4.0.v20140815142514\r\nalloy:1.5.0-dev\r\ntitanium:3.4.0-dev\r\ntitanium-code-processor:1.1.1\r\nacs:1.0.16\r\nnpm:1.3.2\r\nOS:Maverick(10.9.4)\r\nxcode: Xcode6Beta5\r\nDevice:iPhone5s(v8.0),Nexus7(v4.4.2)\r\n\r\nGetting Result as :\r\nOn iOS:\r\n{code}\r\n[ERROR] Done\r\n[INFO] 1600 . 2560 . application/octet-stream\r\n[INFO] 1600 . 2560 . application/octet-stream\r\n{code}\r\n\r\nOn Android:\r\n{code}\r\n[ERROR] : Done\r\n[INFO] : 0 . 0 . application/octet-stream\r\n[INFO] : 0 . 0 . application/octet-stream\r\n{code}\r\n\r\nNow iOS shows the dimension but android does not shows the same.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-19T11:49:47.000+0000", "updated": "2014-08-19T11:49:47.000+0000" }, { "id": "320685", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue was for IOS and it still remain resolved. Will clone a bug for the android issue.\r\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T22:13:56.000+0000", "updated": "2014-08-27T22:13:56.000+0000" }, { "id": "320753", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with environment:\r\n\r\nAppcelerator Studio:3.4.0.201408270900\r\nSdk:3.4.0.v20140827165712\r\nalloy:1.5.0-dev\r\ntitanium:3.4.0-dev\r\ntitanium-code-processor:1.1.1\r\nacs:1.0.16\r\nnpm:1.3.2\r\nOS:Maverick(10.9.4)\r\nxcode: Xcode6Beta6\r\nDevice:iPhone5s(v8.0)\r\n\r\nFor iOS Working as expected.\r\nNot working for android. Already bug logged TIMOB-17567\r\nHence closing the issue.\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T06:23:45.000+0000", "updated": "2014-08-28T06:23:45.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }