Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2927] ImageFactory: Add imageAsUpright() method

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2021-10-19T23:48:58.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsImageFactory
LabelsImageFactory, android, exif, image, ios, jpeg, orientation
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-09-15T00:38:26.000+0000
Updated2021-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.

Comments

  1. Joshua Quick 2021-09-15

    PR (ti.imagefactory): https://github.com/appcelerator-modules/ti.imagefactory/pull/192
  2. Joshua Quick 2021-10-19

    Added to release... https://github.com/appcelerator-modules/ti.imagefactory/releases/tag/v5.1.0-android

JSON Source