image-orientation
The image-orientation CSS property corrects the rotation of an image using the image's metadata, such as EXIF.
Overview
The image-orientation CSS property corrects the rotation of an image using the image's metadata, such as EXIF.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 81 | 81 | 26 | 13.1 | 81 | 13.4 | |
from-image | 81 | 81 | 26 | 13.1 | 81 | 13.4 |
none | 81 | 81 | 26 | 13.1 | 81 | 13.4 |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Syntax
CSS
img {
image-orientation: from-image;
}
.no-rotate {
image-orientation: none;
} Live demo
Use cases
Using image-orientation
The image-orientation CSS property corrects the rotation of an image using the image's metadata, such as EXIF.
Cautions
- May not be supported in older browsers.
Accessibility
- Make sure visual changes are conveyed appropriately to assistive technology.
Related links
Powered by web-features