{ "id": "149631", "key": "TIMOB-19321", "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": [], "resolution": null, "resolutiondate": null, "created": "2015-07-11T17:35:03.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:40.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "I noticed a strange difference in behavior between Titanium SDK after version 3.5.1 when it comes to images that are created from a view and then saved to the device's file system.\r\n\r\nIn the code example below, Ti SDK 3.5.1 produces an image file that is 240 dp x 320 dp, which is my desired outcome; in Ti SDK 4.0.0/4.1.0 however, the image that is created is 240 px x 320 px (i.e., 720 x 960 when created on iPhone 6 Plus):\r\n\r\n*Setting in tiapp.xml:*\r\n{quote}...\r\n dp\r\n...{quote}\r\n\r\n*View in /app/views/index.xml:*\r\n\r\n{quote} \r\n \r\n \r\n{quote}\r\n\r\n*In /app/controllers/index.js:*\r\n\r\n{quote}var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'INPUT.jpg').read();\r\n$.lgImageMaker.image = f;\r\nvar b = $.lgImageContainer.toImage();\r\nvar m = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'OUTPUT.png');\r\nm.write(b);{quote}\r\n\r\nI can replicate the behavior described above 100% of the time simply by switching between SDK 3.5.1 and either 4.0.1 or 4.1.0.\r\n\r\nLet me know if there is any other information I can provide that will help troubleshoot this.\r\n\r\nThanks.", "attachment": [], "flagged": false, "summary": "Glitch/Bug in Universal Unit Support in Ti SDK 4.0.1 and 4.1.0", "creator": { "name": "csands", "key": "csands", "displayName": "Charlie Sands", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "csands", "key": "csands", "displayName": "Charlie Sands", "active": true, "timeZone": "America/New_York" }, "environment": "Appcelerator Studio, Titanium SDK", "comment": { "comments": [], "maxResults": 1, "total": 1, "startAt": 0 } } }