Jump to content
  • Advertisement
Sign in to follow this  
RegularKid

Converting between image types

This topic is 4844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! I'm trying to figure out how to convert a 32bit image that I have into a 4bit image. Anyone know of a command line tool or can show me some source code that can do this? Thanks!

Share this post


Link to post
Share on other sites
Advertisement
Gimp has a command line mode that I believe can do what you want, but IIRC, in Windows, the command line mode is bit flaky.

Share this post


Link to post
Share on other sites
going from 32bpp to 4bpp would only be 1 bit per channel are you sure this is what you want? It would result in some real funk.

Share this post


Link to post
Share on other sites
yeah, i know that I will lose tons of color going from 32bit to 4bit, but I'm ok with this. We're only going to be doing this on the textures that we know only have a few colors in them. Just trying to save some precious memory to get our game out the door. Damn you, PS2! :)

I will try out the gimp stuff. Thanks!

Share this post


Link to post
Share on other sites
It wouldn't be 1 bit per channel if you were using palettized textures. Sounds to me like you want a 3D/4D quantizer.

Share this post


Link to post
Share on other sites
Quote:
Original post by superpig
It wouldn't be 1 bit per channel if you were using palettized textures. Sounds to me like you want a 3D/4D quantizer.


Photoshop has a very good quantizer built-in. Image->Mode->Indexed Color

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!