PNG
Portable Network Graphics: a lossless image format that supports transparency.
In more detail
PNG keeps every pixel exactly, which suits logos, screenshots and generated images with text. Photos are usually much smaller in lossy formats such as WebP or AVIF.
Example
next/og ImageResponse produces PNG social cards.Related terms
- WebP — A modern image format from Google that is usually much smaller than older photo formats or PNG at the same quality.
- AVIF — A newer image format that often compresses even smaller than WebP, at the cost of slower encoding.
- ImageResponse — A Next.js class from next/og that turns JSX and a subset of CSS into a PNG image response.
Taught in
- The Full Mock And Your Review Plan — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- Metadata API: Dynamic OpenGraph & Head Management — Next.js 15 & Modern App Router Architecture