Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Image Palette Applier  (Read 4868 times)

0 Members and 1 Guest are viewing this topic.

achpile

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • Achpile's homepage
    • Email
Image Palette Applier
« on: September 10, 2014, 12:15:15 am »
Good day!

For some time I was looking for the way to apply color palette to specific image (to make image use only colors, defined in palette).

GIMP can make indexed image, but there's 2 main problems:
  • Limitation of 256 colors
  • Alpha channel reset

Well, I decided to make own implementation (it's not finished yet, but workable).

Current features:
  • Able to choose what coordinates to use RGB or HSV
  • Support for GPL and TXT (exported from GIMP) palettes

For now it rewrites original file. Maybe I'll add an option later.
Btw, my tool much slower than GIMP, but it was 4 times slower before I've implemented cache  ;D

https://github.com/achpile/sfml-paletter

Well, screenshots, of course  :D
For all of the manipulations I used 'Cranes' palette from GIMP.

PS: maybe it's a bad example (palette not great to use on this image). So... The only way to find out it's usability is to check it out  ;)

Original:


GIMP indexing result:


RGB space:


HSV space:

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Image Palette Applier
« Reply #1 on: September 10, 2014, 01:21:11 am »
Interesting. There's no rasterizer/dithering yet I assume?

achpile

  • Full Member
  • ***
  • Posts: 231
    • View Profile
    • Achpile's homepage
    • Email
Re: Image Palette Applier
« Reply #2 on: September 10, 2014, 05:46:58 am »
Interesting. There's no rasterizer/dithering yet I assume?

Mario, no. Still, GIMP can do it. And the purpose of this tool is to do what GIMP is not able to  :)
btw,  I wrote it for 1 day :D So, There's no too much abilities  ;)