{ "id": "143195", "key": "AC-1355", "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": "2015-01-26T20:48:50.000+0000", "created": "2015-01-19T21:37:38.000+0000", "labels": [ "3.5.0", "@2ximages", "retina" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:46.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": "The only way to load Retina images with a string on 3.5.0 is with something like:\r\n{code:javascript}\r\nif (density === 'high') {\r\n image = image.replace('.jpg', '@2x.jpg');\r\n image = image.replace('.png', '@2x.png');\r\n}\r\nimageView = Ti.UI.createImageView({\r\n top : 1,\r\n left : 1,\r\n backgroundImage : Ti.Filesystem.applicationDataDirectory + image\r\n});\r\n{code}\r\nWith 3.4.1 it works without inserting @2x in to the string.", "attachment": [ { "id": "53827", "filename": "image.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-01-26T20:46:54.000+0000", "size": 798136, "mimeType": "image/png" }, { "id": "53828", "filename": "image@2x.png", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-01-26T20:46:54.000+0000", "size": 2264946, "mimeType": "image/png" } ], "flagged": false, "summary": "3.5.0.GA No longer uses Retina images with image from string", "creator": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "environment": "IOS", "comment": { "comments": [ { "id": "340616", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nwe can't reproduce your issue. How to test it? \r\n\r\n1. Create a new mobile project classic titanium\r\n2. Copy the image.png and image@2x.png attached to the ticket, copy it to the Resources Directory\r\n3. Replace app.js to: \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundImage:'image.png',\r\n});\r\n\r\nwin.open();\r\n{code}\r\n4. Run it in a retina device.\r\n\r\nYou will see that the image being shown is the image@2x.png, as expected. \r\n\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2015-01-26T20:48:50.000+0000", "updated": "2015-01-26T20:48:50.000+0000" }, { "id": "340657", "author": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm not loading them from Resources, but from the application data directory (images are downloaded from http server first).", "updateAuthor": { "name": "swords", "key": "swords", "displayName": "Hilko Lantinga", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-26T23:38:13.000+0000", "updated": "2015-01-26T23:38:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }