{ "id": "176286", "key": "MOD-2928", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-10-19T23:49:23.000+0000", "created": "2021-09-15T04:11:50.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ImageFactory", "android", "compress", "image", "webp" ], "versions": [], "issuelinks": [ { "id": "59317", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "175932", "key": "AC-6657", "fields": { "summary": "Create WebP images on Andriod", "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" } }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-10-19T23:49:23.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": "14525", "name": "ImageFactory" } ], "description": "*Summary:*\r\nWe should add \".webp\" image format support to the \"ti.imagefactory\" module on Android.\r\n\r\n*Proposed Solution:*\r\nAll transformation methods such as {{imageAsRotated()}}, {{imageAsResized()}}, etc. already support a \"format\" option which can be set to {{ImageFactory.JPEG}} or {{ImageFactory.PNG}}. We should add a new {{ImageFactory.WEBP}} constant and support compressing to that format.\r\n\r\nWe should also add a 3rd optional argument to the {{compress()}} method. Currently, this method defaults to JPEG, but this will allow it be formatted to WEBP or PNG as well.\r\n{code:javascript}\r\ncompress(blob, quality [, format ])\r\n{code}\r\n\r\nThe following Android-only method should look at the \"fileUrl\" argument's file extension to determine which image format to compress to. That is, if the file extension is {{.webp}}, then it should compress to WebP.\r\n{code:javascript}\r\ncompressToFile(blob, quality, fileUrl)\r\n{code}\r\n\r\n*Note:*\r\niOS does not natively support the WebP image file format. This will be an Android only feature.\r\n", "attachment": [], "flagged": false, "summary": "ImageFactory: Add WebP format support", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "459046", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (ti.imagefactory): https://github.com/appcelerator-modules/ti.imagefactory/pull/192\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-09-15T04:26:33.000+0000", "updated": "2021-09-15T04:26:33.000+0000" }, { "id": "459122", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added to release...\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:49:19.000+0000", "updated": "2021-10-19T23:49:19.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }