What is MIME type "image/vnd.radiance"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

image/vnd.radiance is a MIME type for Radiance image files. It targets high dynamic range imaging. Radiance images can capture a broad span of light intensities. They store color data using the RGBE method. This method encodes brightness with precision.

The format is pivotal in advanced lighting simulation and rendering. It helps create realistic images where dark and bright areas are both detailed. This is critical in design, architecture, and visual effects.


Files using this MIME type include formats like PIC, HDR, RAD, RGBE and XYZE. They work best in specialized software that handles high dynamic range rendering.

For more technical details, consult resources on high dynamic range imaging and Radiance’s documentation, such as the Radiance project site.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: image/vnd.radiance    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="image/vnd.radiance">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'image/vnd.radiance');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

Do web browsers natively support image/vnd.radiance files?

No, standard web browsers like Chrome, Firefox, and Safari do not display image/vnd.radiance files (such as .hdr or .pic) natively. To display these high dynamic range images on the web, developers typically use WebGL libraries like Three.js or Babylon.js to process and render the HDR data as environment maps.

How do I configure Apache to serve .hdr files correctly?

To ensure your Apache server sends the correct Content-Type header for Radiance files, add the following line to your .htaccess file or server configuration: AddType image/vnd.radiance .hdr .pic .rgbe. This prevents browsers or download managers from misinterpreting the file as a generic binary stream.

What software can open files with the image/vnd.radiance MIME type?

These files are primarily used in 3D rendering and graphic design. You can open them with specialized software such as Adobe Photoshop, Blender, GIMP (with plugins), or the Radiance suite itself. Standard OS image viewers usually cannot decode the RGBE data structure.

How do I add support for this MIME type in Nginx?

For Nginx, you should edit your mime.types file or add a types block within your server configuration. Use the following syntax: types { image/vnd.radiance hdr pic rgbe; }. After saving the changes, reload Nginx to apply the new configuration.

Why is the RGBE format used in image/vnd.radiance?

RGBE stands for Red, Green, Blue, and Exponent. It allows the file to store high dynamic range data using only 32 bits per pixel (similar to standard images) by sharing one exponent value across all three color channels. This makes image/vnd.radiance files typically smaller and more efficient for lighting simulations than uncompressed floating-point formats.

What is the difference between image/vnd.radiance (.hdr) and OpenEXR (.exr)?

Both are HDR formats, but image/vnd.radiance uses the RGBE integer encoding which is older and often more compact, making it popular for environment maps. OpenEXR supports higher precision (16-bit or 32-bit floating point) and arbitrary channels, making it the industry standard for visual effects compositing.

What should I do if my .hdr file downloads instead of displaying?

Since browsers cannot render this format natively, downloading is the default behavior. If you intend to display it, you must implement a JavaScript-based viewer on your webpage. If you simply want users to download it, ensure the MIME type is set correctly so the OS recognizes the file extension, such as .HDR, upon saving.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.