This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Add lossless
prop to next/image
component
#32106
Labels
Image (next/image)
Related to Next.js Image Optimization.
Describe the feature you'd like to request
Some images have poor quality from lossy compression when converting to webp or avif formats, even when
quality={100}
.In particular, gradients suffer from Color Banding.
Examples:
Describe the solution you'd like
This can be resolved with a new prop,
lossless={true}
, that can be used to enable lossless compression.Its supported by many tools already such as:
squoosh
Describe alternatives you've considered
An alternative is to use
q={100}
to indicate lossless which seems to be how cloudinary does it.This would be much easier to implement than adding a new prop, but might be a breaking change.
The text was updated successfully, but these errors were encountered: