Skip to main content
🇪🇸 Español 🇧🇷 Português 🇩🇪 Deutsch
Image Converter Video Converter Audio Converter Document Converter
Tools Guides Formats Pricing API
Log In
Guide

PNG: Advanced Color Modes, Filtering & Compression Strategies

PC By Pablo Cirre

Related conversions

Put what you just learned into practice — convert your files now in seconds, free and without registration.

Frequently Asked Questions

Type 0 (Grayscale) for black/white or single-channel images; Type 2 (RGB) for full-color photographs; Type 3 (Indexed/Palette) for graphics with <256 distinct colors, reducing file size 60–75%; Type 4 (Grayscale+Alpha) for masks with transparency; Type 6 (RGBA) for images requiring both full color and transparency. Choice profoundly impacts file size: indexed reduces size most aggressively but causes visible posterization if palette is poorly chosen.

Type 0 (Grayscale) para black/white ou single-channel images; Type 2 (RGB) para full-color photographs; Type 3 (Indexed/Palette) para graphics com <256 distinct colors, reducing tamanho do arquivo 60–75%; Type 4 (Grayscale+Alpha) para masks com transparência; Type 6 (RGBA) para images requiring both full color e transparência. Choice profoundly impacts tamanho do arquivo: indexed reduces size most aggressively mas causes visible posterization if palette is poorly chosen.

Type 0 (Grayscale) für black/white oder single-channel images; Type 2 (RGB) für full-color photographs; Type 3 (Indexed/Palette) für graphics mit <256 distinct colors, reducing Dateigröße 60–75%; Type 4 (Grayscale+Alpha) für masks mit Transparenz; Type 6 (RGBA) für images requiring both full color und Transparenz. Choice profoundly impacts Dateigröße: indexed reduces size most aggressively aber causes visible posterization if palette is poorly chosen.

Type 0 (Grayscale) para black/white o single-channel images; Type 2 (RGB) para full-color photographs; Type 3 (Indexed/Palette) para graphics con <256 distinct colors, reducing tamaño de archivo 60–75%; Type 4 (Grayscale+Alpha) para masks con transparencia; Type 6 (RGBA) para images requiring both full color y transparencia. Choice profoundly impacts tamaño de archivo: indexed reduces size most aggressively pero causes visible posterization if palette is poorly chosen.

Use <strong>lossy</strong> (JPG, WebP, AVIF) for photographs — the human eye barely notices the difference at quality 80–85, and file sizes are 5–20× smaller. Use <strong>lossless</strong> (PNG, WebP-lossless) for screenshots, UI mockups, logos and anything with sharp edges or text — lossy creates ugly artifacts around boundaries.

Scanline filtering transforms each row of pixels using one of five algorithms (None, Sub, Up, Average, Paeth) to make data more compressible by DEFLATE. Sub and Up filters exploit horizontal/vertical patterns; Paeth excels at diagonal transitions. Adaptive encoding tries all five filters per scanline, selecting the best-performing, adding only 1 byte per scanline overhead but yielding 10–20% better compression than uniform filtering. High-quality encoders like oxipng use this technique.

Scanline filtering transforms each row of pixels usando one of five algorithms (None, Sub, Up, Average, Paeth) to make data more compressible by DEFLATE. Sub e Up filters exploit horizontal/vertical patterns; Paeth excels at diagonal transitions. Adaptive codificação tries all five filters per scanline, selecting the best-performing, adding only 1 byte per scanline overhead mas yielding 10–20% better compressão than uniform filtering. alta-quality encoders like oxipng usar this technique.

Scanline filtering transforms each row von pixels using one von five algorithms (None, Sub, Up, Average, Paeth) to make data more compressible by DEFLATE. Sub und Up filters exploit horizontal/vertical patterns; Paeth excels at diagonal transitions. Adaptive Codierung tries all five filters per scanline, selecting the best-performing, adding only 1 byte per scanline overhead aber yielding 10–20% better Komprimierung than uniform filtering. hoch-quality encoders like oxipng verwenden this technique.

Scanline filtering transforms each row de pixels using one de five algorithms (None, Sub, Up, Average, Paeth) to make data more compressible by DEFLATE. Sub y Up filters exploit horizontal/vertical patterns; Paeth excels at diagonal transitions. Adaptive codificación tries all five filters per scanline, selecting the best-performing, adding only 1 byte per scanline overhead pero yielding 10–20% better compresión than uniform filtering. alta-quality encoders like oxipng usar this technique.

For new projects in 2026, WebP is supported by all modern browsers (95%+ of traffic) and saves 25–35% over JPG at the same visual quality. AVIF is even more efficient (40–50% smaller) but encoding is slower and Safari support is recent. Use WebP as the default and AVIF as the progressive enhancement via <code>&lt;picture&gt;</code> with JPG fallback.

Gamma correction adds minimal overhead (<100 bytes) and specifies how brightness values should be interpreted on display. ICC color profiles add 2–20 KB but are essential for print and professional color-critical workflows. Web delivery typically omits ICC profiles (unnecessary kilobytes for users who don't need color management) but includes them for print/professional use. sRGB intent markers (modern standard) eliminate gamma ambiguity without explicit profile data.

Gamma correction adds minimal overhead (<100 bytes) e specifies how brightness values should be interpreted on display. ICC color profiles add 2–20 KB mas are essential para print e profissional color-critical workflows. Web delivery tipicamente omits ICC profiles (unnecessary kilobytes para users who don't need color management) mas inclui them para print/professional use. sRGB intent markers (modern padrão) eliminate gamma ambiguity sem explicit profile data.

Gamma correction adds minimal overhead (<100 bytes) und specifies how brightness values should be interpreted on display. ICC color profiles add 2–20 KB aber are essential für print und professionell color-critical workflows. Web delivery typically omits ICC profiles (unnecessary kilobytes für users who don't need color management) aber beinhaltet them für print/professional use. sRGB intent markers (modern Standard) eliminate gamma ambiguity ohne explicit profile data.

Gamma correction adds minimal overhead (<100 bytes) y specifies how brightness values should be interpreted on display. ICC color profiles add 2–20 KB pero are essential para print y profesional color-critical workflows. Web delivery typically omits ICC profiles (unnecessary kilobytes para users who don't need color management) pero incluye them para print/professional use. sRGB intent markers (modern estándar) eliminate gamma ambiguity sin explicit profile data.

It depends on the tool: ImageMagick and FFmpeg copy EXIF by default, while cwebp drops it unless you pass <code>-metadata all</code>. KaijuConverter strips metadata server-side after conversion to protect your privacy — if you need to keep camera or GPS data, use a desktop tool you control.

Non-interlaced PNGs are 5–10% smaller because filtering is more effective. Adam7 interlacing allows low-resolution preview after 3% download, but overhead outweighs benefit on fast connections. Modern best practice: use non-interlaced PNGs with lazy-loading and low-quality placeholder thumbnails for better perceived performance. Interlacing is beneficial only on very slow networks where users value immediate visual feedback.

Non-interlaced PNGs are 5–10% smaller because filtering is more effective. Adam7 interlacing permite baixa-resolution preview depois 3% download, mas overhead outweighs benefit on fast connections. moderno best practice: usar non-interlaced PNGs com lazy-loading e baixa-quality placeholder thumbnails para better perceived performance. Interlacing is beneficial only on very slow networks where users value immediate visual feedback.

Non-interlaced PNGs are 5–10% smaller because filtering is more effective. Adam7 interlacing erlaubt niedrig-resolution preview nach 3% download, aber overhead outweighs benefit on fast connections. modern best practice: verwenden non-interlaced PNGs mit lazy-loading und niedrig-quality placeholder thumbnails für better perceived performance. Interlacing is beneficial only on very slow networks where users value immediate visual feedback.

Non-interlaced PNGs are 5–10% smaller because filtering is more effective. Adam7 interlacing permite baja-resolution preview después 3% download, pero overhead outweighs benefit on fast connections. moderno best practice: usar non-interlaced PNGs con lazy-loading y baja-quality placeholder thumbnails para better perceived performance. Interlacing is beneficial only on very slow networks where users value immediate visual feedback.

Three common causes: (1) ICC color profiles dropped during conversion shift colors slightly; (2) chroma subsampling (4:2:0) reduces color accuracy in lossy JPG/WebP; (3) the new format may not support all features of the original (e.g. PNG → JPG drops transparency to white). For pixel-perfect results stick to lossless formats and preserve color profiles explicitly.