Convert HDR to QOI
Max file size 100mb.
HDR vs QOI Format Comparison
| Aspect | HDR (Source Format) | QOI (Target Format) |
|---|---|---|
| Format Overview |
HDR
Radiance RGBE High Dynamic Range
Developed by Greg Ward in 1985 for the Radiance lighting simulation system, HDR stores pixel data using a shared exponent encoding (RGBE) that captures a vast luminance range from deep shadows to brilliant highlights. Each pixel uses 32 bits with a shared 8-bit exponent, enabling representation of real-world lighting conditions far beyond what standard 8-bit images can hold. HDR is foundational in 3D rendering, architectural visualization, and photographic tone mapping. Lossless Standard |
QOI
Quite OK Image Format
Created by Dominic Szablewski in 2021, QOI is a modern lossless image format designed for simplicity and speed. The entire specification fits on a single page, yet QOI achieves compression ratios comparable to PNG while encoding and decoding 3-4x faster. QOI uses a combination of run-length encoding, index lookups, and delta encoding to compress pixel data without any quality loss. Supported natively in Pillow 12+ and gaining adoption in game engines and toolchains. Lossless Modern |
| Technical Specifications |
Color Depth: 32-bit RGBE (shared exponent float)
Compression: Run-length encoded RGBE Transparency: Not supported Animation: Not supported Extensions: .hdr, .pic |
Color Depth: 8-bit per channel (24-bit RGB / 32-bit RGBA)
Compression: Lossless (RLE + index + delta encoding) Transparency: Full 8-bit alpha channel Animation: Not supported Extensions: .qoi |
| Image Features |
|
|
| Processing & Tools |
HDR image processing with command-line tools: # View HDR with tone mapping magick input.hdr -auto-level output.png # Convert HDR with exposure adjustment magick input.hdr -evaluate multiply 2.0 \ -auto-level output.png |
QOI encoding with Pillow and CLI tools: # Python Pillow conversion
from PIL import Image
img = Image.open("input.hdr")
img.convert("RGB").save("output.qoi")
# Using qoiconv CLI tool
qoiconv input.png output.qoi
|
| Advantages |
|
|
| Disadvantages |
|
|
| Common Uses |
|
|
| Best For |
|
|
| Version History |
Introduced: 1985 (Greg Ward, Radiance system)
Current Version: RGBE format (stable since inception) Status: Mature, industry standard for HDR Evolution: HDR/RGBE (1985) — OpenEXR (1999) emerged as HDR alternative |
Introduced: 2021 (Dominic Szablewski)
Current Version: QOI 1.0 (2022, final specification) Status: Stable, growing adoption Evolution: QOI 1.0 (2021) — rapid community adoption and library support |
| Software Support |
Image Editors: Photoshop, GIMP, Luminance HDR, Photomatix
Web Browsers: Not supported OS Preview: Limited — requires HDR-aware viewers 3D Software: Blender, Maya, 3ds Max, Unity, Unreal Engine CLI Tools: ImageMagick, Pillow, OpenCV, radiance |
Image Editors: GIMP (plugin), XnView, IrfanView
Web Browsers: Not supported OS Preview: Limited — third-party viewers Libraries: Pillow 12+, stb_image, Rust qoi crate CLI Tools: qoiconv, ImageMagick (delegate), Pillow |
Why Convert HDR to QOI?
Converting HDR to QOI is valuable when you need a tone-mapped version of your high dynamic range image stored in a format optimized for speed. HDR files contain floating-point luminance data that most applications and displays cannot render directly — they require tone mapping to compress the wide brightness range into standard 8-bit output. QOI provides an extremely fast lossless container for the resulting tone-mapped image, making it ideal for real-time pipelines where encoding and decoding speed is critical.
In game development workflows, HDR environment maps are commonly converted to standard dynamic range textures for use as preview thumbnails, UI elements, or lower-quality fallback assets. QOI's encoding speed — typically 3-4 times faster than PNG — makes it particularly attractive for batch processing large sets of HDR assets during build pipelines. The format's simplicity also means minimal CPU overhead, which matters when processing hundreds or thousands of textures.
For photography workflows, converting HDR to QOI gives you a lossless intermediate file after tone mapping that preserves every pixel exactly. Unlike JPEG, which introduces compression artifacts each time you save, QOI maintains pixel-perfect fidelity while still achieving reasonable compression ratios. This makes QOI a practical working format when you need to pass tone-mapped images between processing steps without quality degradation.
Note that this conversion necessarily reduces the dynamic range — HDR's 32-bit floating-point data is tone-mapped to 8-bit per channel during conversion. The resulting QOI file will look correct on standard displays but will not contain the original HDR luminance data. Keep your original HDR files for any future re-processing or alternative tone mapping treatments.
Key Benefits of Converting HDR to QOI:
- Blazing Fast Encoding: QOI encodes 3-4x faster than PNG for rapid batch processing
- Lossless Quality: Every pixel of the tone-mapped result preserved exactly
- Lightweight Format: Simple specification with minimal processing overhead
- Alpha Channel Support: RGBA output available for compositing workflows
- Game Pipeline Friendly: Growing support in game engines and asset tools
- Deterministic Output: Same input always produces identical file bytes
- No Licensing Costs: Completely free and open specification
Practical Examples
Example 1: Game Engine Asset Pipeline Thumbnail Generation
Scenario: A game studio needs to generate preview thumbnails from hundreds of HDR environment maps for their asset browser, requiring fast encoding with lossless quality.
Source: sunset_env.hdr (8.2 MB, 4096x2048, 32-bit RGBE) Conversion: HDR → QOI (tone-mapped) Result: sunset_env.qoi (1.4 MB, 4096x2048, 8-bit RGB) Pipeline workflow: 1. Load HDR environment map 2. Apply Reinhard tone mapping for natural look 3. Encode to QOI for asset browser thumbnails ✓ 3-4x faster encoding than PNG saves minutes on batch runs ✓ Lossless storage ensures consistent preview quality ✓ 450 HDR maps processed in 38 seconds vs 140s for PNG
Example 2: HDR Photography Quick Preview Export
Scenario: A photographer merges bracketed exposures into HDR and wants to quickly export tone-mapped previews for client review without the overhead of PNG encoding.
Source: interior_shoot.hdr (12.5 MB, 6000x4000, 32-bit float) Conversion: HDR → QOI (with exposure adjustment) Result: interior_shoot.qoi (4.8 MB, 6000x4000, 8-bit RGB) Photography workflow: 1. Merge bracketed exposures to HDR 2. Apply filmic tone mapping with adjusted exposure 3. Save as QOI for fast lossless intermediate ✓ No compression artifacts — clean for further editing ✓ Encodes in ~200ms vs ~700ms for equivalent PNG ✓ Pixel-perfect quality for client proof delivery
Example 3: Architectural Visualization Batch Rendering
Scenario: An architectural firm renders interior scenes with HDR output and needs tone-mapped versions for presentation slides, choosing QOI for its speed advantage in the automated pipeline.
Source: living_room_render.hdr (15.3 MB, 3840x2160, RGBE) Conversion: HDR → QOI (presentation-ready) Result: living_room_render.qoi (5.1 MB, 3840x2160, RGB) Visualization pipeline: 1. Render scene to HDR for maximum flexibility 2. Tone map with ACES filmic curve for realistic look 3. Batch-encode all renders to QOI ✓ 120 renders processed in under 2 minutes ✓ Lossless intermediate before final JPEG export ✓ Consistent quality across entire presentation set
Frequently Asked Questions (FAQ)
Q: What happens to the HDR dynamic range during conversion to QOI?
A: The high dynamic range data is tone-mapped to 8-bit per channel during conversion. HDR files can represent luminance values spanning many orders of magnitude, while QOI stores standard 0-255 values per channel. The tone mapping algorithm compresses the brightness range to produce a visually pleasing result on standard displays, but the original HDR luminance data is not preserved in the QOI output.
Q: Why choose QOI over PNG for the converted output?
A: QOI's primary advantage is speed — it encodes and decodes 3-4 times faster than PNG while achieving similar compression ratios. Both formats are lossless, so image quality is identical. Choose QOI when processing speed matters (batch pipelines, real-time applications, game asset builds) and PNG when you need maximum compatibility (web browsers, email, universal viewer support).
Q: Can I open QOI files in Photoshop or web browsers?
A: QOI does not have native support in major web browsers or Photoshop as of 2026. You can open QOI files using GIMP (with plugins), XnView, IrfanView, and any application built on Pillow 12+. For web display, you would need to convert QOI to PNG, JPEG, or WebP. QOI is best suited for internal pipelines and tools rather than end-user distribution.
Q: Will the converted QOI file be smaller than the original HDR?
A: Generally yes. HDR files store 32-bit floating-point data per pixel (with RGBE encoding), resulting in large files. The QOI output uses 8-bit per channel with efficient lossless compression, typically producing files 2-5x smaller than the source HDR. The exact ratio depends on image content — images with large uniform areas compress better in QOI.
Q: Does QOI support transparency (alpha channel)?
A: Yes, QOI supports both RGB (3 channels) and RGBA (4 channels with full 8-bit alpha). However, since HDR files do not contain alpha channel data, the converted QOI will typically be RGB-only. If you need transparency, you would add an alpha channel as a separate processing step after conversion.
Q: What tone mapping is applied during HDR to QOI conversion?
A: The conversion applies automatic tone mapping to bring the HDR floating-point values into the 0-255 range. This typically involves normalizing the luminance range and applying a perceptual curve so that both shadows and highlights are visible in the output. For precise control over tone mapping parameters, consider processing the HDR file in dedicated software like Luminance HDR or Photoshop before converting to QOI.
Q: Can I convert QOI back to HDR?
A: No. The conversion from HDR to QOI is a one-way process — the original floating-point luminance data is permanently reduced to 8-bit values during tone mapping. You cannot reconstruct the full dynamic range from the QOI file. Always keep your original HDR files if you may need to re-process them with different tone mapping settings in the future.
Q: Is QOI suitable for archiving tone-mapped HDR photographs?
A: QOI is a reasonable archival format since it is lossless and produces identical output from identical input. However, for long-term archival, PNG or TIFF may be better choices due to their universal support and mature ecosystem. QOI excels as a fast intermediate format in processing pipelines rather than a primary archival format, though its simplicity means it is unlikely to become unreadable.