PhotoCapabilities.redEyeReduction
The redEyeReduction
read-only property of the PhotoCapabilities
interface returns an enum indicating the red-eye reduction capability of the source.
Syntax
const redEyeReduction = photoCapabilities.redEyeReduction
Value
One of "never"
, "always"
, or "controllable"
.
never
-
Red-eye reduction is not available.
always
-
Red-eye reduction is available in the source and it is always turned on.
controllable
-
Red-eye reduction is available in the source and it is configurable via the
PhotoSettings
object.
Specifications
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
redEyeReduction |
59 |
≤79 |
No |
No |
46 |
No |
59 |
59 |
No |
43 |
No |
7.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PhotoCapabilities/redEyeReduction