[TIMOB-28432] Android: Change Ti.UI.ImageView property "autorotate" to default to true
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Low |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2021-08-24T09:58:01.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 10.1.0 |
| Components | Android |
| Labels | ImageView, android, exif, jpeg, orientation, parity |
| Reporter | Joshua Quick |
| Assignee | Joshua Quick |
| Created | 2021-04-29T18:46:28.000+0000 |
| Updated | 2021-08-24T09:58:01.000+0000 |
Description
*Summary:*
Ti.UI.ImageView property [autorotate](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.ImageView-property-autorotate) defaults to false on Android, but defaults to true on iOS. This property is responsible in reading a JPEG's EXIF orientation and automatically rotating it onscreen if needed. Odds are, this is what everyone wants by default so we should change the default to true on Android.
*Note:*
While this is technically a breaking-change, I don't think anyone will have a problem with it. In fact, it will likely reduce tech-support issues for devs who are unaware of this property.
Attachments
| File | Date | Size |
|---|---|---|
| ImageExifTest.js | 2021-04-30T04:07:33.000+0000 | 1393 |
PR (master): https://github.com/appcelerator/titanium_mobile/pull/12753