Configuration

Image qualities

In Next.js 16 the optimizer uses an allowed quality list, defaulting to 75. Image prop values outside the list select the nearest allowed value in the documented behavior; unsupported quality on the optimizer endpoint is rejected. This is a resource policy, not a complete abuse-prevention mechanism. Source: https://nextjs.org/docs/app/api-reference/components/image. Documentation-reviewed illustrative draft; installed declarations and runtime not verified.

Formal Syntax & Structure

nextjs syntaxnextjs
images: { qualities: [75] }

Working Example

Example Snippetnextjs
import type { NextConfig } from 'next';const config: NextConfig={images:{qualities:[50,75]}};export default config;
Next.js Reference