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

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) -
Converted iamge (125 colors) -
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: 70)
Find all posts by this user
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  global color change Whburling 1 209 Nov 18, 2018 21:49
Last Post: paynekj
  change everything NOT black to another color styler001 2 173 Nov 9, 2018 12:55
Last Post: styler001
  Changing A Color Ricebug 1 670 Oct 10, 2018 16:50
Last Post: paynekj
  Foreground selection tool does't change background color ericr 1 225 Aug 26, 2018 21:16
Last Post: paynekj
  Toolbox Icons are Grey - How to Change them to Color? fishbone 1 256 Jun 25, 2018 20:57
Last Post: paynekj

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS