1-bit.day

1-bit.day

#pixel-art #visual-art #code

ICE acorn anticipation astronaut avatar bee blender block bone boot bottlecap bus butterfly buzzer cabin1 cabin2 cable cactus carpet1 carpet2 carrot-flower chess cookie cow diamond disco-ball drum duck flashcard gift gold-ingot icecream keyboard krampus milk money-machine mouse muffin note paper pen pencil phone pot rain rebellion robo salt santa satellite skate skunk sled snow snowman sock supernova swan tape teddybear thrill toy train tree1 tree2 tree3 underwear vest vinyl-record wagon washing-machine wave

You can grab these all at once here: ../img/1bitday/!1bitday.zip

I make them on 1-bit.day. Here's the Python script I wrote to do the conversion:

#!/usr/bin/env python3
# turns 1024x1024 pixel art from 1-bit.day into actual size
# if filename contains 8x8 or 32x32 it will switch from default 16x16; override this by passing arg
# args: filename format=gif size=16/auto
# dumps to stdout

from sys import argv, stdout
from PIL import Image, ImageOps

output = "gif"
size = 16
if len(argv) < 2:
	print("args: filename format=gif size=16/auto")
	exit(1)
image = Image.open(argv[1])
if "32x32" in argv[1]:
	size = 32
elif "8x8" in argv[1]:
	size = 8
if len(argv) > 2:
	output = argv[2]
if len(argv) > 3:
	size = int(argv[3])
image.resize((size, size), Image.Resampling.NEAREST, (256, 256, 768, 768)).save(stdout.buffer, format=output)

Use it like this:

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

§ Backlinks ^

§ See Also ^


Send feedback...

about