{ "id": "175932", "key": "AC-6657", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": null, "resolutiondate": null, "created": "2020-12-27T14:45:39.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "59317", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "176286", "key": "MOD-2928", "fields": { "summary": "ImageFactory: Add WebP format support", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-10-19T23:50:59.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": [], "description": "Be able to create a WebP image on Android\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\ttitle: \"img\",\r\n\tbackgroundColor: '#fff',\r\n\tlayout: \"vertical\",\r\n\texitOn\r\n});\r\n\r\nvar file = Ti.Filesystem.getFile(\"img.jpg\");\r\n\r\nvar img1 = Ti.UI.createImageView({\r\n\timage: file,\r\n\twidth: 400,\r\n\theight: Ti.UI.SIZE,\r\n\ttop: 10\r\n});\r\nwin.add(img1);\r\nconsole.log(\"JPG filesize: \", file.size);\r\n\r\n// create webp\r\nvar blob = file.read();\r\nvar webp = blob.imageAsWebP(0.5);\r\nconsole.log(\"WebP filesize: \", webp.size);\r\nvar img = Ti.UI.createImageView({\r\n\timage: webp,\r\n\twidth: 400,\r\n\theight: Ti.UI.SIZE,\r\n\ttop: 10\r\n});\r\nwin.add(img);\r\n\r\nTi.App.addEventListener(\"pause\",function(e){\r\n\tconsole.log(\"pause\");\r\n})\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Create WebP images on Andriod", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "457954", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/12358", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-12-27T14:46:03.000+0000", "updated": "2020-12-27T14:46:03.000+0000" }, { "id": "459123", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Side Note:* WebP image format support was added to \"ti.imagefactory\" v5.1.0.\r\nhttps://github.com/appcelerator-modules/ti.imagefactory/releases/tag/v5.1.0-android\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-10-19T23:50:59.000+0000", "updated": "2021-10-19T23:50:59.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }