Sun Raster

Sun Raster, or Sun Rasterfile, is an image file format associated with Sun operating systems. It supports grayscale, paletted, and full color images. Images may be uncompressed, or use RLE compression.

Format details
Files have a fixed 32-byte header, followed by an optional color palette, followed by the image data.

Identification
Files begin with signature bytes.

Specifications

 * http://www.fileformat.info/format/sunraster/spec/index.htm
 * http://www.martinreddy.net/gfx/2d/RAS.txt
 * https://hg.java.net/hg/solaris-x11~x-s12-clone/file/b0bfd498768f/open-src/data/rasterfile/sun-src

Software

 * Konvertor
 * Netpbm: pnmtorast, rasttopnm
 * ImageMagick (format named "RAS" or "SUN")
 * Tom's Viewer
 * FFmpeg
 * XnView
 * abydos

Sample files

 * http://samples.libav.org/image-samples/sunrast/ (Caution: 32bpp.ras dated 2012 has color channels in the wrong order.)
 * https://telparia.com/fileFormatSamples/image/sunRaster/

Resources

 * , from the Encyclopedia of Graphics File Formats
 * MultimediaWiki article
 * Sun Raster