Skip to content

Add lossless prop to next/image component #32106

@styfle

Description

@styfle

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:

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.

Metadata

Metadata

Assignees

Labels

Image (next/image)Related to Next.js Image Optimization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions