Python Forum
Pillow Image Processing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pillow Image Processing
#1
I'm a Sega Genesis homebrew developer. I want to write a script to optimise images for the console. I'm hoping to use the Pillow library but don't even know if what I have in mind is possible!

I'd like to take a single image of 216 x 120 with 60 colours. For every 8x8 pixel square (tile) i'd like to take a colour palette and store this in an array of palettes. In an 216 x 120 image there are 405 tiles.

Once I have all 405 tile palettes, I'd like to compare each palette with the next in the array and if they're identical, I'd like to pop the palette off the array and eventually leave myself with a set of unique palettes. I'd then like to whittle these final palettes down to 4 by comparing each tile and finding its palette of best fit.
Reply


Messages In This Thread
Pillow Image Processing - by matteusbeus - Nov-02-2017, 01:25 PM
RE: Pillow Image Processing - by wavic - Nov-02-2017, 02:30 PM
RE: Pillow Image Processing - by DeaD_EyE - Nov-02-2017, 03:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  grayscale image processing zyb1003 10 7,991 Oct-26-2017, 05:33 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020