{ "id": "126559", "key": "TIMOB-16475", "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": { "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": "2017-06-27T18:11:41.000+0000", "created": "2014-02-19T05:21:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-27T18:11:41.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\nIn 3.1.3.GA, you were able to \"save\" the images after transformations. Starting with 3.2.0, the saved image will reflect the original image, not the one after the transformation. \r\n\r\nh4. Test Case\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : \"Test\",\r\n});\r\nwin.backgroundColor = '#13386c';\r\n\r\nvar t1 = Ti.UI.create2DMatrix();\r\n\tt1 = t1.rotate(35);\r\n\tt1 = t1.scale(0.4);\r\nvar cloud1 = Titanium.UI.createView({\r\n\tbackgroundImage : 'KS_nav_ui.png',\r\n\theight : 178,\r\n\twidth : 261,\r\n\ttop : 10,\r\n\ttransform:t1\r\n});\r\n\r\nwin.add(cloud1);\r\nvar button = Titanium.UI.createButton({\r\n\ttitle : 'Transform & Copy',\r\n\twidth : 200,\r\n\theight : 40,\r\n\tbottom : 20\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n\tvar img = Titanium.UI.createImageView({\r\n\t\timage : cloud1.toImage(),\r\n\t\ttop : 200,\r\n\t});\r\n\twin.add(img);\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n\r\n{code}\r\n\r\nh4. Steps to reproduce the issue\r\n1. Create a new mobile project (classic titanium)\r\n2. Paste the code sample into app.js\r\n3. Run it\r\n4. You will see a transformed image in the screen.\r\n5. Press the label that will produce a copy of the image\r\n6. You will see the image being added to the window, with the original size and setup. \r\n\r\nh4. Q&A Related question\r\nhttp://developer.appcelerator.com/question/162746/toimage-does-not-respect-transform-on-320-android", "attachment": [], "flagged": false, "summary": "Android: Regression: Saving an image **after** transformation, will produce the original image", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "422958", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170623141152\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T18:11:41.000+0000", "updated": "2017-06-27T18:11:41.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }