{ "id": "111141", "key": "AC-2062", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-13T17:09:57.000+0000", "created": "2013-03-13T15:45:42.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:01.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Bug description: ImageView doesn't display an image if it is assigned as a Titanium.File. Assigning an image as path to the file works properly.\r\n\r\nSteps to reproduce:\r\n - 1. Create an ImageView and assign a Titanium.File to the \"image\" property\r\n - 2. Run application\r\n\r\nExpected behavior: application should run and show an image.\r\n\r\nActual behavior: application runs but doesn't show an image. The HTML generated for the image has the actual binary image content in the \"src\" attribute of the \"img\" tag (base64 was probably intended).\r\n\r\nCode example: assuming that you have a proper image in resourseDirectory/images/\r\n \r\n{code}\r\n\tvar self = Ti.UI.createView();\r\n\t\r\n\tvar imageView = Ti.UI.createImageView({\r\n\t\timage: Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, '/images/apple_logo.jpg'),\r\n\t\twidth: 100,\r\n\t\theight: 100\r\n\t});\r\n\t\r\n\tself.add(imageView);\r\n{code}", "attachment": [], "flagged": false, "summary": "Mobile Web: ImageView doesn't work properly with images assigned as files", "creator": { "name": "roman.kamenetsky", "key": "roman.kamenetsky", "displayName": "Roman Kamenetsky", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "roman.kamenetsky", "key": "roman.kamenetsky", "displayName": "Roman Kamenetsky", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI version 3.0.24, Titanium SDK version 3.1.0.v20130304165932", "comment": { "comments": [ { "id": "241997", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "I cannot reproduce this issue. I tried the code you sent, placing an image in the Resources folder, and it is shown up correctly.\r\n\r\nI used SDK 3.1.0.v20130312161655\r\n", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-13T17:09:57.000+0000", "updated": "2013-03-13T17:09:57.000+0000" }, { "id": "244488", "author": { "name": "roman.kamenetsky", "key": "roman.kamenetsky", "displayName": "Roman Kamenetsky", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It seems that it doesn't work only on Chrome.\nHave you tried it on Chrome?", "updateAuthor": { "name": "roman.kamenetsky", "key": "roman.kamenetsky", "displayName": "Roman Kamenetsky", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-28T17:02:01.000+0000", "updated": "2013-03-28T17:02:01.000+0000" }, { "id": "283923", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "We tried to reproduce the issue with a sample case with Titanium 3.1.3. However, we were not able to reproduce the issue in Mobile Web. Please test the sample and let us know if the issue persists.\r\n\r\nh5. Test Environment:\r\nOS: MAC OS X 10.8.5\r\nTi SDK: 3.1.3 GA, 3.2.0.x\r\nTi CLI: 3.3.0\r\nGoogle Chrome, Firefox \r\n\r\n\r\nh5. Test Code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : '#000',\r\n\ttitle : 'Show Web Image',\r\n\tnavBarHidden : false\r\n});\r\n\r\n// create a imageView\r\nvar imageView = Ti.UI.createImageView({\r\n\timage : Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"/images/MyPicture.jpg\"),\r\n\twidth : 100,\r\n\theight : 100\r\n});\r\n// add to parent View\r\nwin.add(imageView);\r\nwin.open(); \r\n\r\n{code}\r\n\r\n\r\nh5. Step to reproduces\r\n\r\n# Create a new project\r\n# Paste this code in app.js file\r\n# Add image in images directory inside resources directory \r\n# Run this in mobile web \r\n# Image will display \r\n \r\nh5. Expected Result\r\n\r\nImage will display ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-12T04:16:58.000+0000", "updated": "2013-12-18T20:59:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }