15 January 2020, 19:58 | #1 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
Image conversion from RGB to indexed color
I found some website where one could upload some RGB Image and it converted it to an indexed color image for download. You could choose from 2, 4, 8, ... also 12 bit RGB with 32 colors, etc. as on Amiga.
Unfortunately I don't remember where I found this, it was in some thread in a forum, but I don't remember where (not sure if it was this forum or some other). So does anybody know such a site, or a tool that can do this? |
15 January 2020, 20:21 | #2 |
Defendit numerus
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 53
Posts: 4,468
|
|
15 January 2020, 20:25 | #3 |
Registered User
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
|
Yes! That was the site. I was shocked to find that I didn't bookmark the page, and couldn't find it anymore.
|
15 January 2020, 21:53 | #4 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,162
|
Without any internet, I'm using ImageMagick "convert" utility and "amigeconv" to convert BMP images to bitplanes and palette.
Also python & PIL to merge all images so they'll share the same palette when cutting them back. My process: 1) concatenate all images (python PIL/Pillow lib) 2) reduce colors (with imagemagick), turn off dithering or this is horrible 3) extract palette with amigeconv (extract copperlist => you have the palette) 4) cut back the images as PNG (Python Pillow) 5) convert the images to bitplanes. They'll use the palette extracted at 3), and add extra info in the header so your game knows the dimensions, depth... python script used for Bagman game here: https://github.com/jotd666/bagman/bl...hop_sprites.py (next version to come is able to create sprites too) Sometimes the algorithm reduces colors too much. I used 2 passes, progressively reducing to 32 then to 16 and it worked well… With Python PIL you can also create your own color reduction algorithm but it's not trivial |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sculpt animate 4D raw RGB files conversion | christianlucio | support.Apps | 13 | 11 December 2021 14:07 |
DB25 to DB23 (RGB Connector) DIY Conversion | Nightshft | support.Hardware | 4 | 11 April 2019 13:06 |
Color saturation over RGB in older Amiga monitors? | R-Typer | support.Hardware | 2 | 26 March 2017 23:16 |
RGB Color problem on Amiga 1200 | lolof | support.Hardware | 1 | 05 April 2012 20:02 |
Indexed image (CLUT) programming resources | Unch | Coders. General | 2 | 27 January 2008 16:17 |
|
|