What is RAS? Sun Raster Image Format Explained
The native raster bitmap format of Sun Microsystems SunOS workstations from the 1980s.
Last updated:
What is RAS?
RAS (Sun Raster) is a raster image file format developed by Sun Microsystems during the 1980s as the native bitmap format for its SunOS UNIX workstations. It can store black-and-white, grayscale and color bitmap data at various pixel depths.
A Sun Raster file begins with a fixed 32-byte header that starts with the magic number 0x59A66A95, followed by an optional color map and then the image data. Images may be stored uncompressed or with byte-encoded run-length encoding (RLE), with header fields describing width, height, depth and the type of color map used.
How Sun Raster Works
A Sun Raster file starts with a fixed 32-byte header whose first field is the magic number 0x59A66A95, followed by an optional color map and then the pixel data.[1] Header fields record the width, height, pixel depth, and the type of color map, letting a reader interpret black-and-white, grayscale, or color content stored at various depths.[2]
History and Standardization
Sun Microsystems introduced the format in the 1980s as the native bitmap format for SunOS UNIX workstations, where it served as a common interchange image type.[1] It was a vendor format rather than a ratified standard, with its structure documented through platform tools and community references.[2]
Technical Details
Images may be stored uncompressed or with a byte-oriented run-length encoding scheme that compresses runs of repeated pixels.[2] Its limited depth options and tie to the SunOS ecosystem mean the format is now largely of historical interest, supported mainly by legacy image-conversion utilities.[1]
MKV Technical Specifications
RAS vs Other Image Formats
| Feature | RAS | PNG | TIFF |
|---|---|---|---|
| Type | Raster | Raster | Raster |
| Compression | RLE or none[1] | Lossless | Lossless or none |
| Color depth | 1 to 32-bit[2] | Up to 16-bit | Up to 32-bit |
| Transparency | Optional alpha[2] | Yes | Yes |
| Origin | Sun Microsystems[1] | W3C | Aldus/Adobe |
| Best for | Legacy Unix imaging | Web graphics | Archival imaging |
RAS (Sun Raster) was common on early Unix workstations, but PNG and TIFF now provide more widely supported lossless storage.
Advantages & Disadvantages
Advantages
Sun Raster supports 1-bit monochrome, grayscale and color images at several bit depths within a single simple format.
A run-length encoding mode can reduce the size of images with large uniform regions while remaining lossless.
The compact 32-byte header with a clear magic number makes the format easy to identify and parse.
As the standard format on SunOS systems, it was broadly supported across Sun's graphics tools.
Disadvantages
The format is bound to the discontinued Sun/SunOS ecosystem and is little used in modern workflows.
Few current image editors open RAS directly, though utilities such as ImageMagick and Netpbm can convert it.
The header carries only basic image parameters and lacks the rich metadata of formats like TIFF.
Common Use Cases
Sun Raster files are mostly seen in legacy UNIX and SunOS graphics contexts.
SunOS workstation images | FileFormer
RAS was the default screen and image bitmap format on Sun Microsystems UNIX workstations.
Legacy UNIX graphics interchange | FileFormer
Images exchanged among older UNIX tools were frequently stored as Sun Raster files.
Archival conversion | FileFormer
Today RAS files are typically read to migrate older assets into modern formats such as PNG or TIFF.
Convert RAS Files Free
Use our free online converter to convert RAS and other formats - no signup, no watermarks.
Try Image Converter FreeFrequently Asked Questions
What does the .ras extension stand for?
It denotes a Sun Raster image, the native bitmap format of Sun Microsystems SunOS workstations; the .sun extension is also used.
Does Sun Raster support compression?
Yes. RAS files can be uncompressed or use a byte-oriented run-length encoding (RLE) scheme.
How is a Sun Raster file identified?
It begins with a 32-byte header whose first four bytes are the magic number 0x59A66A95.
What color depths does RAS support?
It can store 1-bit black-and-white, grayscale, and color images at various pixel depths, optionally with a color map.
Can RAS files be converted today?
Yes. Tools such as ImageMagick and the Netpbm suite can read Sun Raster files and convert them to modern formats.