What is MIME type "image/x-rgb"?

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

image/x-rgb is a MIME type for images in a native Silicon Graphics format. It represents raster image data stored in an uncompressed or minimally processed layout.

This format was designed for fast, direct pixel access on SGI workstations. It supports images where color channels and, in some cases, transparency are stored in a simple manner. This structure makes it handy for high-performance image processing and specialized graphic applications.

It is most commonly associated with configurations like the RGB bitmap and its related formats such as RGBA, BW, and SGI images.

For more technical details, refer to external documentation on MIME types and legacy image formats at IANA Media Types.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: image/x-rgb    
  

HTML

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


    <a href="file.dat" type="image/x-rgb">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/x-rgb');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

Do web browsers support image/x-rgb natively?

No, modern web browsers like Chrome, Firefox, and Safari do not display image/x-rgb files. To use these images on a website, you must convert them to standard web-compatible formats such as image/png, image/jpeg, or image/webp.

How do I open an SGI image file?

You need specialized image editing software to view or edit these files. Tools like GIMP, XnView, and IrfanView support the format. Adobe Photoshop may also open files with the .sgi or .rgb extension, though it might require a legacy plugin.

How do I configure Apache to serve .rgb and .sgi files correctly?

Add the AddType directive to your server configuration or .htaccess file. Use the line AddType image/x-rgb .rgb .sgi .rgba to ensure the server sends the correct MIME header. Without this, browsers may attempt to download the file as a generic binary stream.

What is the difference between image/rgb and image/x-rgb?

The x- prefix signifies that the type is non-standard or experimental. While image/rgb is sometimes used, image/x-rgb is the specific convention often used for Silicon Graphics (SGI) image assets to distinguish them from raw RGB data streams used in other contexts.

Does the image/x-rgb format support transparency?

Yes, this format supports an alpha channel for transparency. When an alpha channel is present, the file often uses the .rgba extension. This capability made it a popular choice for textures in early 3D graphics pipelines.

Why would I see an image/x-rgb file today?

These files are mostly found in legacy archives, scientific imaging, or older 3D texture libraries. Because the format was native to Silicon Graphics workstations, it persists in industries that relied heavily on SGI hardware for visual effects and engineering visualization in the 1990s.

Is image/x-rgb a compressed format?

It can be uncompressed or use Run-Length Encoding (RLE). RLE provides lossless compression that is very fast to decode, which aligned with the high-performance requirements of the original SGI hardware. However, the file sizes are generally larger than modern formats like JPEG.

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.