Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Converting to 16-bit colour

This thread is locked; no one can reply to it. rss feed Print
Converting to 16-bit colour
23yrold3yrold
Member #1,134
March 2001
avatar

Anyone know a good program for converting an image with transparency to 16-bit colour without dithering it? We're trying to compress our image data down past a certain threshold and 16-bit colour works, but the dithering applied by our texture generating tool (PVR) makes it look like trash. The version of Photoshop we have apparently doesn't even support 16-bit colour anymore (wtf). If the Gimp or whatever can just open the file, convert to 16-bit colour without dithering, and then save a 32-bit PNG, that would probably work, since I imagine the colours produced even in 320bit wouldn't be prone to dithering in 16-bit. Any suggestions would be great; thanks.

EDIT: By 16-bit I mean RGBA4444 ....

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Arthur Kalliokoski
Second in Command
February 2005
avatar

I've never heard of RGBA4444, let alone an image utility that will save to that. Can't you just whip up an Allegro 4.2 program to load up the 32 bit image and use getpixel() to convert to 4444 manually to an array?

They all watch too much MSNBC... they get ideas.

23yrold3yrold
Member #1,134
March 2001
avatar

I considered that, and am still considering it, but I don't have Allegro installed here and I don't know how easy it is to work with the PNG file format. I was hoping for a quicker option.

Anyway, I seem to have found one; turns out an older version of the PVR tool defaults to no dithering when compressing to 4444 while the new version doesn't even give me an option. So older version it is. :P

--
Software Development == Church Development
Step 1. Build it.
Step 2. Pray.

Thomas Fjellstrom
Member #476
June 2000
avatar

What image format actually supports RGBA4444? The only 16bit format I know of usually is RGB565 and RGBA5551/1555. You'll notice none of them have more than 1 bit of alpha...

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Arthur Kalliokoski
Second in Command
February 2005
avatar

You might be able to save the array to a TGA file (RLE compressed as you will) with some sort of flag in the "developers section" to specify that it's in the 4444 format.

They all watch too much MSNBC... they get ideas.

LennyLen
Member #5,313
December 2004
avatar

What image format actually supports RGBA4444?

PAM

Go to: