Skip to content

Simple Python Pillow script turning an image into RGB subpixels (first by turning it into grayscale) and vice-versa

Notifications You must be signed in to change notification settings

akirbaes/rgb-subpixels-converter

Repository files navigation

RGB Subpixels tool

Turn (grayscale) images into subpixels and vice-versa!

Drop a file on .image_to_subpixels_scale.bat

Or use python rgb_converter.py [FILENAME] vscale

Ghost grayscaleGhost subpixels

Pixels will be averaged vertically 3 by 3 (loss of data).

Drop a file on .image_to_subpixels_tall.bat

Or use python rgb_converter.py [FILENAME]

Bird grayscaleBird tall subpixels

Pixels will not be averaged, but the image will be stretched as a result.

Drop a file on .subpixels_to_image_greyscale.bat

Or use python rgb_converter.py [FILENAME] reverse greyscale vscale

Subpixel textGrayscale text

The greyscale version will generate back the original image/sprite (unless loss of information).

Drop a file on .subpixels_to_image_color.bat

Or use python rgb_converter.py [FILENAME] reverse colored vscale

Subpixel textRGB colored text

The RGB version is useful to zoom in (as the subpixel version is not zoomable).

Removing vscale will just keep the same height. Can look funny, but no loss of data.


Other options when turning an image into subpixels:

r, g or b (multiples) will create a new output shifted by respectively zero, one or two subpixels. (Hence, the first leftmost subpixel of the image is either red, green or blue.)

If several out of r,g,b are mentioned, combined will allow them to be output in the same .gif. Otherwise, they will be separate images.

About

Simple Python Pillow script turning an image into RGB subpixels (first by turning it into grayscale) and vice-versa

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published