1-bit.day

1-bit.day

1-bit.day

#pixel-art #visual-art

I make 1-bit (black and white) 16x16 art here:
https://1-bit.day/pnppl

You can get it as actual 16x16 bitmaps (gifs) here: /img/1bitday

Here's the Python script I made to do the conversion:

 1#!/usr/bin/env python3
 2# turns 1024x1024 pixel art from 1-bit.day into actual size
 3# if filename contains 8x8 or 32x32 it will switch from default 16x16; override this by passing arg
 4# args: filename format=gif size=16/auto
 5# dumps to stdout
 6
 7from sys import argv, stdout
 8from PIL import Image, ImageOps
 9
10output = "gif"
11size = 16
12if len(argv) < 2:
13	print("args: filename format=gif size=16/auto")
14	exit(1)
15image = Image.open(argv[1])
16if "32x32" in argv[1]:
17	size = 32
18elif "8x8" in argv[1]:
19	size = 8
20if len(argv) > 2:
21	output = argv[2]
22if len(argv) > 3:
23	size = int(argv[3])
24image.resize((size, size), Image.Resampling.NEAREST, (256, 256, 768, 768)).save(stdout.buffer, format=output)

Use it like this:

11bitday.py pixel-art-16x16-1_1.png > out.gif

Send feedback...

about