Replace Openverse images, fix blank space and spacing on mobile
Mirror to Gitea / mirror (push) Skipped

- Swap every photo for Unsplash photos and Pixabay stickers/clipart,
  credited in IMAGE_CREDITS.md and /credits; regenerate effect images
- Reveal animations never hide on-screen content and have a failsafe, so
  sections can no longer stay blank on phones
- Tighter section and footer spacing on mobile; drop the unlabeled status
  dot on mobile and the blog's fake loading bar
- Cover moves from the all-green poster to the board's mixed palette
- New boombox, spray can and headphones stickers
This commit is contained in:
Johan Sandoval committed 2026-10-08 19:08:34 +00:00
1 parent 48dcaaac25
commit 38b5213138
96 files changed
+293 -277

No files matched your search

+11 -6
View File
@@ -32,10 +32,15 @@ BAYER4 = (np.array([[0, 8, 2, 10], [12, 4, 14, 6], [3, 11, 1, 9], [15, 7, 13, 5]
def load(name: str) -> Image.Image:
for ext in ('.jpg', '.png'):
for ext in ('.webp', '.jpg', '.png'):
p = SRC / f'{name}{ext}'
if p.exists():
return Image.open(p).convert('RGB')
im = Image.open(p)
if im.mode in ('RGBA', 'LA', 'P'): # transparent art: flatten onto white paper
im = im.convert('RGBA')
bg = Image.new('RGBA', im.size, (255, 255, 255, 255))
return Image.alpha_composite(bg, im).convert('RGB')
return im.convert('RGB')
raise FileNotFoundError(name)
@@ -81,7 +86,7 @@ def vignette(img: Image.Image, strength=0.55) -> Image.Image:
def paper(img: Image.Image, tint=(243, 236, 217), mix=0.12) -> Image.Image:
tex = Image.open(SRC / 'paper-crumpled.jpg').convert('L').resize(img.size)
tex = Image.open(SRC / 'paper-crumpled.webp').convert('L').resize(img.size)
tex = ImageOps.autocontrast(tex).convert('RGB')
out = ImageChops.multiply(img, tex)
return Image.blend(out, Image.new('RGB', img.size, tint), mix)
@@ -229,7 +234,7 @@ def jsr(img, ink=(46, 92, 44), paper=(226, 233, 150), cell=6, outline=True):
def paper_tex(img, amount=0.5):
tex = Image.open(SRC / 'paper-crumpled.jpg').convert('L').resize(img.size)
tex = Image.open(SRC / 'paper-crumpled.webp').convert('L').resize(img.size)
tex = ImageOps.autocontrast(tex)
t = np.asarray(tex, dtype=np.float32) / 255
t = 1 - (1 - t) * amount
@@ -310,13 +315,13 @@ RECIPES = [
('botanical', 'riso', 700, {'ink_a': (240, 90, 40), 'ink_b': (0, 155, 58)}),
('lily', 'pixel', 800, {'width': 110}),
('hibiscus', 'toon', 1000, {}),
('cta-sign', 'vintage', 1400, {}),
('subway-platform', 'vintage', 1000, {}),
('pedalboard', 'riso', 1000, {'ink_a': (226, 126, 166), 'ink_b': (20, 20, 18)}),
('cloud', 'xerox', 700, {}),
# street-poster set (stand-ins until the new stock photos are sourced)
('motorcycle', 'jsr', 1100, {}),
('guitar-strat', 'jsr', 900, {'ink': (30, 60, 140), 'paper': (240, 228, 200)}),
('cta-sign', 'popart', 900, {}),
('subway-platform', 'popart', 900, {}),
('guitar-strat', 'popart', 900, {}),
('synth', 'jsr', 900, {'ink': (150, 30, 40), 'paper': (245, 222, 180)}),
('cassette', 'ascii', 900, {}),