Post Reply 

Color Depth Conversion

Mar 4, 2012, 23:13 (This post was last modified: Mar 4, 2012 23:39 by Vheos777.)
Post: #1
Color Depth Conversion
Hey,

I've created a palette consisting of 343 color. What I want to achieve is to convert an image so it only uses colors from the palette. Think of it as an indexed image, but with color amount exceeding 256.

So basically, whenever the converting tool scans a pixel, it should find the most similar color from the palette and use it instead. I want it to round each RGB value to one of these (in my case):
0, 43, 85, 128, 170, 213, 255
For example, R17 G90 B155 would get converted into R0 G85 B170.

Here's how I'd imagined the conversion process:
Original image (256 colors) - http://img705.imageshack.us/img705/9523/earth256.png
Converted iamge (125 colors) - http://img594.imageshack.us/img594/1660/earth125.png
It's basically converting higher color depth into a lower one. If only the indexed images could contain palette bigger than 256 colors...

I've tried using the "Colors -> Map -> Palette Map" tool, but it's based on luminosity and the actual colors' location on the palette, which results in pseudorandom colorization of the image.



Any help will be greatly appreciated.

PS. I'm attaching a bitmap of the 343 colors you can extract the palette out of.


Attached File(s)
.bmp  343 Colors.bmp (Size: 516.85 KB / Downloads: 57)
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to color bended text? Msa0503 1 120 Dec 17, 2017 08:23
Last Post: ythgilb
Question Saving to a gif format and choosing the color palette SpongeBob 0 128 Dec 13, 2017 19:13
Last Post: SpongeBob
  Color filled letters Dan M 1 124 Dec 13, 2017 17:12
Last Post: paynekj
  not able to draw different color rectangles manish 1 121 Nov 3, 2017 04:01
Last Post: ythgilb
  Desaturate to color KWiK 2 205 Oct 9, 2017 22:14
Last Post: KWiK

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS