Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28432] Android: Change Ti.UI.ImageView property "autorotate" to default to true

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-08-24T09:58:01.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.1.0
ComponentsAndroid
LabelsImageView, android, exif, jpeg, orientation, parity
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-04-29T18:46:28.000+0000
Updated2021-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

FileDateSize
ImageExifTest.js2021-04-30T04:07:33.000+00001393

Comments

  1. Joshua Quick 2021-04-29

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/12753

JSON Source