Skip to content

git2358/PicoImageProc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PicoImageProc

A set of image processing functions for converting images for use in the PICO-8

Dependencies

The tools are written in Python 3, with opencv/numpy. The frontend is written in wx.

I recommend running pip install opencv-python numpy if you need to install them.

Also run pip install wxPython if you want to use the interactive frontend.

Usage (Frontend)

python frontend.py

This will pop up an interactive window you can play with.

It's slow, ugly, and I plan to make it a lot faster/cleaner, but it's a proof-of-concept in the meantime, and hopefully it'll also be useful to you!

Usage (Command Line)

python convert.py [options] imagefile.ext [output.p8]
--use-palette palette-filename: only use the palette listed in the file
                                (format is text, one color index per line)
--default-palette: use the normal palette and disable secret colors
--ban-color index: do not allow a color index to appear in recommendations
--dither percentage: enable Floyd-Steinberg dithering (0%-100%)
--ordered-dither percentage: use ordered dithering
--brighten percentage: adjust global image brightness
--contrast percentage: adjust global image contrast
--preview: preview results (3x scale, press any key to terminate)
--export filename: export an image of the result (at PICO-8 resolution)
--slower-recommend: take dithering settings into account when recommending (slower)

Note that the software does not need to resize unless the image is bigger than 128x128.

About

Tools for creating PICO-8 graphics from images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%