SFML community forums

General => SFML projects => Topic started by: achpile on September 10, 2014, 12:15:15 am

Title: Image Palette Applier
Post by: achpile 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:

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

Current features:

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:
(http://i.imgur.com/DDi567V.jpg)

GIMP indexing result:
(http://i.imgur.com/MTLNYiO.jpg)

RGB space:
(http://i.imgur.com/KFfiNfB.jpg)

HSV space:
(http://i.imgur.com/tN6vrUo.jpg)
Title: Re: Image Palette Applier
Post by: Mario on September 10, 2014, 01:21:11 am
Interesting. There's no rasterizer/dithering yet I assume?
Title: Re: Image Palette Applier
Post by: achpile 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  ;)