image-orientation
Widely availableSince 202097% of users
Controls whether an image is automatically rotated based on its 'EXIF' metadata (data captured by cameras about how the photo was taken).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since April 2020. Widely available since October 2022.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
from-image- Inherited
- Yes
- Applies to
- all elements
- Animation type
- discrete
Quick example
img {
/* Ensures the image is correctly oriented based on camera data */
image-orientation: from-image;
}Values
from-imageflipimage-orientation browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
81+
26+
13.1+
81+Mobile
81+Android
26+Android
13.4+iOS