[MOD-2927] ImageFactory: Add imageAsUpright() method
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-10-19T23:48:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | ImageFactory |
Labels | ImageFactory, android, exif, image, ios, jpeg, orientation |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2021-09-15T00:38:26.000+0000 |
Updated | 2021-10-19T23:48:58.000+0000 |
Description
We should add the following method to our "ti.imagefactory" module for both Android and iOS.
imageAsUpright(blob) // Returns blob
If given blob is a JPEG with a non-upright EXIF orientation, then the above method will return a new blob wrapping a new JPEG image saved to the upright position.
If given blob has an upright orientation (always the case for PNG), then same blob instance will be returned.
PR (ti.imagefactory): https://github.com/appcelerator-modules/ti.imagefactory/pull/192
Added to release... https://github.com/appcelerator-modules/ti.imagefactory/releases/tag/v5.1.0-android