Skip to content

getpos/image-palette-forcer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

image-palette-forcer

forces an image into a specific color palette

there's probably a program that does this better and easier but i couldn't find it

requires pillow and python 3

probably breaks all python style guides (sorry)

example conversion

bird

converted_bird

usage

python convert_to_palette.py [image] [palette] [dithering]

set dithering to true or false to enable or disable it (true uses floyd steinberg)

example

python convert_to_palette.py demo/bird.jpeg demo/crimson-1x.png true

license

do whatever i dont care

future

will probably make it so you can use more than 1 image at a time when i feel like it names are sorta buggy

credits

bird image from here: https://www.goodfreephotos.com/animals/birds/blue-bird.jpg.php

demo color palette (crimson-1x.png) from WildLeoKnight https://lospec.com/palette-list/crimson

About

forces images into a specific color palette

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages