Get Optimized Image Props
getOptimizedImageProps
is a function that extracts the internal processing of the Image
component provided by this library.
For example, if you use the <img>
element directly without using the Image
component, you can use getOptimizedImageProps
to get the properties to pass to the <img>
element.
This allows for more advanced use cases such as art direction using the <picture>
element or displaying images using the CSS background-image
property.