English Amiga Board

Go Back   English Amiga Board > Creation > Graphics

Thread Tools
Old 15 January 2020, 20:58   #1
Registered User

sparhawk's Avatar
Join Date: Sep 2019
Location: Essen/Germany
Age: 51
Posts: 252
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?
sparhawk is online now  
Old 15 January 2020, 21:21   #2
Per aspera ad astra

ross's Avatar
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 49
Posts: 2,425
ross is offline  
Old 15 January 2020, 21:25   #3
Registered User

sparhawk's Avatar
Join Date: Sep 2019
Location: Essen/Germany
Age: 51
Posts: 252
Yes! That was the site. I was shocked to find that I didn't bookmark the page, and couldn't find it anymore.
sparhawk is online now  
Old 15 January 2020, 22:53   #4
This cat is no more
jotd's Avatar
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 3,542
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
jotd is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
DB25 to DB23 (RGB Connector) DIY Conversion Nightshft support.Hardware 4 11 April 2019 14:06
Sculpt animate 4D raw RGB files conversion christianlucio support.Apps 12 06 January 2019 20:15
Color saturation over RGB in older Amiga monitors? R-Typer support.Hardware 2 27 March 2017 00:16
RGB Color problem on Amiga 1200 lolof support.Hardware 1 05 April 2012 21:02
Indexed image (CLUT) programming resources Unch Coders. General 2 27 January 2008 17:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 12:30.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.06073 seconds with 13 queries