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
  No color tim clement 1 96 May 23, 2018 15:26
Last Post: paynekj
  Why is Gimp in gray instead of color? Hard to follow tutorials jjk 1 130 May 12, 2018 06:53
Last Post: paynekj
  How do I set the color in the grid filter? beebell 2 181 Mar 18, 2018 15:21
Last Post: paynekj
  Draw with soild color, no fade? hotsprings 1 204 Mar 10, 2018 04:00
Last Post: ythgilb
  Want to do simple color change. SoyTits 2 216 Mar 8, 2018 23:43
Last Post: SoyTits

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS