Sun Raster converter

Convert RAS images to PNG; transparency is preserved.

FluffyShield Protected workspace
From
To

Choosing a format opens another page, set to that conversion. Images you've added here come along. Finished files don't, so download them first.

FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

PNG options here: browser or advanced encoder; RGBA, RGB, grayscale or indexed color; 8- or 16-bit; Fast, Balanced or Maximum compression; interlacing. Which PNG settings are worth changing?

How it works
  1. Choose .ras files
  2. Pick PNG, JPG or WebP
  3. Convert
  4. Download your copies

What it does

Every pixel as stored

Color Sun Raster files open as regular pictures, unchanged.

Photo sample: 0 of 55,296 pixels changed

Reads packed files

Plain and run-length files both open, with their color tables.

Writes Sun Raster too

Save a picture as 24-bit Sun Raster, with an optional Byte RLE setting.

Limits Sun Raster has no transparency.

Will a Sun Raster file survive the trip to PNG?

Yes, pixel for pixel. FluffyBench's Sun Raster converter reads the old workstation format in your browser and hands back a PNG that opens anywhere.

What's inside a .ras file?

Think of a Sun Raster file as a very tidy packing slip followed by the goods. A short header says how wide and tall the picture is, how many bits each pixel uses and how the pixels are packed. Then the pixels follow, row by row, stored plainly or packed to save space.

It was the native picture format of SunOS and Solaris, so it turns up in old Unix screenshots, icons and image archives. Programs like ImageMagick and Netpbm still read it, but almost nothing writes it anymore, which is why a stray .ras file can be hard to open.

A Sun 3/60 workstation from a computer museum, the kind of machine the format was made for.

A beige Sun 3/60 workstation with its keyboard and a three-button mouse on a table.

A Sun 3/60

Photo of a Sun 3/60 in a computer-museum collection. The plate on the front of the case reads sun 3/60; a full keyboard sits in front of it, and a three-button mouse with the Sun logo lies on the table. How we measured · Photo: Emiliano Russo, Public domain, via Wikimedia Commons.

Why doesn't a single pixel change on the way to PNG?

Because Sun Raster keeps every pixel as it is, with nothing thrown away to save space. FluffyBench works out the packing, the row padding and any color table for you, and hands back ordinary pixels.

We checked with a photo saved in two Sun Raster layouts, one with its channels in blue-green-red order and one in red-green-blue. Both opened with 0 pixels changed out of 55,296, and a packed flat graphic came through the same way.

Doing it in FluffyBench's Sun Raster converter

FluffyBench's Sun Raster converter handles it in your browser, from choosing the .ras file to saving its PNG, and nothing leaves your device.

  1. Pick the Sun Raster file with Choose images. To is already PNG, so the copy opens in any image app.

  2. On a phone, open Settings with the gear button. Settings holds the size choice; Original keeps the picture's pixel size.

  3. Close Settings with the gear button, then press Convert to make the PNG.

  4. The tile shows the PNG's dimensions and file size. Download saves this PNG.

    The finished PNG of the photo, with its dimensions and the Download button outlined.
    The finished PNG of the photo, with its dimensions and the Download button outlined.

A whole archive of old files can go in one batch: all 1,000 files in ours finished, reporting “1000 of 1000 done · 165.9 MB → 132.7 MB · 20% saved.”

Should you pick Byte RLE when you save a Sun Raster file?

FluffyBench can also write Sun Raster, always as 24-bit color with no transparency, so see-through areas land on white. The Sun Raster storage setting starts on Uncompressed RGB. Its other choice, Byte RLE, works like writing “20 whites” in place of twenty white squares: a run of identical bytes becomes a count and a value.

Byte RLE shrank a flat graphic, but it made a photo slightly larger.

Byte RLE took 24% off the flat graphic and added a little to the photo

Flat graphic

Uncompressed RGB 150.6 KB
Byte RLE 114.6 KB

Photo

Uncompressed RGB 165.9 KB
Byte RLE 166.4 KB

File size, KB

Each group is one picture saved both ways; sizes are rounded to 0.1 KB, and the photo's two files are 486 bytes apart.

So pick Byte RLE for flat images only. With the default setting, our photo file was byte for byte the one Python's Pillow library wrote, and opening every file we wrote changed no pixels.

What does a 256-color .ras file cost you?

Some .ras files hold only 256 colors, with a table saying which is which. FluffyBench opens them exactly as stored, but squeezing a picture down to 256 colors merges shades, and no converter can bring those back. The PNG keeps the pixels, not the table.

One patch of the Earth picture, enlarged: from the 24-bit file, and from the 256-color file.

A patch of the Earth's clouds and ocean in smooth color.

24-bit file

The same patch with a speckled, coarser pattern of colors.

256-color file

The same 56 by 56 pixel patch of clouds and ocean, read from both files and enlarged without smoothing. In the 24-bit file every pixel keeps its own shade; in the 256-color file each pixel is the nearest of 256 colors in the file's table, so shades are merged and the clouds look speckled. Over the whole picture the palette file differs from the full-color one in 36,050 pixels of 50,176. · Photo: NASA, Public domain, NASA-created image, via Wikimedia Commons.

A full 24-bit file has none of this trouble. That leaves the files FluffyBench can't read at all.

Which .ras files does FluffyBench refuse?

When a file doesn't fit what FluffyBench reads, you get a clear message instead of a guess. A file declaring 16-bit color says “This Sun Raster pixel depth is not handled.” A photo cut to half its length says “The Sun Raster pixel payload is truncated.”

If your file opened, the PNG is ready to use as it is. For trimming it or making it lighter for an upload, two more FluffyBench tools take over.

You need just part of the picture, or it's turned the wrong way.

FluffyBench's Crop and adjust images

It takes PNG, so convert first, then crop, rotate or flip that copy.

The picture is too big for an upload or an email.

FluffyBench's Image Space Saver

It opens the .ras file itself and resizes or compresses it toward a file size you choose.

Need an X11 window dump instead?

Need a PNG from a Sun Raster image?

Search FluffyBench