feat: add atmosphere backdrops and shipped placeholders

About and Projects had a figure floating on a CSS gradient while Music
and Podcasts had a whole world behind theirs. They get their own
landscape backdrop, which is what made the four read as one series.

Adds placeholder art for a release without a cover and a post without a
featured image, composited over the per-topic accent so a grid of
missing images still varies. Tracks borrow their album cover first.

The generated inventory grows to 76 files. Placeholders encode at lower
quality because they sit at half opacity behind text, which kept the
payload inside its budget instead of raising it again.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-13 19:41:48 -05:00
1 parent d1ad17f4be
commit f859780eaa
32 files changed
+540 -136

No files matched your search

+18 -3
View File
@@ -137,6 +137,7 @@ chrnx_build_responsive_image() {
chrnx_image_basename=$1
chrnx_image_source_name=$2
chrnx_image_webp_quality=${3:-78}
chrnx_image_avif_quality=${4:-58}
chrnx_image_source="$chrnx_image_root/assets/images/$chrnx_image_source_name"
chrnx_image_source_extension=${chrnx_image_source_name##*.}
if [ ! -f "$chrnx_image_source" ]; then
@@ -148,7 +149,7 @@ chrnx_build_responsive_image() {
chrnx_image_resized="$chrnx_image_tmp/$chrnx_image_basename-$chrnx_image_width.$chrnx_image_source_extension"
sips --resampleWidth "$chrnx_image_width" "$chrnx_image_source" --out "$chrnx_image_resized" >/dev/null
cwebp -quiet -preset picture -q "$chrnx_image_webp_quality" -alpha_q 90 -m 6 -metadata none "$chrnx_image_resized" -o "$chrnx_image_build_output/$chrnx_image_basename-$chrnx_image_width.webp"
avifenc --ignore-exif --ignore-xmp --ignore-icc --qcolor 58 --qalpha 85 --speed 6 "$chrnx_image_resized" "$chrnx_image_build_output/$chrnx_image_basename-$chrnx_image_width.avif" >/dev/null
avifenc --ignore-exif --ignore-xmp --ignore-icc --qcolor "$chrnx_image_avif_quality" --qalpha 85 --speed 6 "$chrnx_image_resized" "$chrnx_image_build_output/$chrnx_image_basename-$chrnx_image_width.avif" >/dev/null
done
}
@@ -177,6 +178,12 @@ done
chrnx_build_responsive_image "alter-ego-gaming-half-body" "alter-ego-gaming-half-body.png"
printf '{\n\t"source": "alter-ego-gaming-half-body.png",\n\t"formats": [ "avif", "webp" ],\n\t"widths": [ 384, 768 ]\n}\n' > "$chrnx_image_build_output/alter-ego-gaming-half-body.json"
for chrnx_image_placeholder in placeholder-post placeholder-release; do
# Placeholders sit at half opacity behind text; they do not need full quality.
chrnx_build_responsive_image "$chrnx_image_placeholder" "$chrnx_image_placeholder.png" 48 40
printf '{\n\t"source": "%s.png",\n\t"formats": [ "avif", "webp" ],\n\t"widths": [ 384, 768 ]\n}\n' "$chrnx_image_placeholder" > "$chrnx_image_build_output/$chrnx_image_placeholder.json"
done
chrnx_build_responsive_image "the-no-names-musician-cutout" "the-no-names-musician-cutout.png"
printf '{\n\t"source": "the-no-names-musician-cutout.png",\n\t"formats": [ "avif", "webp" ],\n\t"widths": [ 384, 768 ]\n}\n' > "$chrnx_image_build_output/the-no-names-musician-cutout.json"
@@ -185,6 +192,10 @@ printf '{\n\t"source": "the-no-names-collage.jpeg",\n\t"formats": [ "avif", "web
chrnx_build_responsive_background "podcast-frequency-grunge" "podcast-frequency-grunge.png"
printf '{\n\t"source": "podcast-frequency-grunge.png",\n\t"formats": [ "avif", "webp" ],\n\t"widths": [ 384, 768, 1536 ]\n}\n' > "$chrnx_image_build_output/podcast-frequency-grunge.json"
for chrnx_image_background in about-grunge projects-grunge; do
chrnx_build_responsive_background "$chrnx_image_background" "$chrnx_image_background.png"
printf '{\n\t"source": "%s.png",\n\t"formats": [ "avif", "webp" ],\n\t"widths": [ 384, 768, 1536 ]\n}\n' "$chrnx_image_background" > "$chrnx_image_build_output/$chrnx_image_background.json"
done
chrnx_validate_staged_family() {
chrnx_image_basename=$1
@@ -215,12 +226,16 @@ for chrnx_image_topic in code gaming life literature podcasts research; do
done
chrnx_validate_staged_family "alter-ego-gaming-half-body" 384 768
chrnx_validate_staged_family "the-no-names-musician-cutout" 384 768
chrnx_validate_staged_family "placeholder-post" 384 768
chrnx_validate_staged_family "placeholder-release" 384 768
chrnx_validate_staged_family "the-no-names-collage" 384 768
chrnx_validate_staged_family "podcast-frequency-grunge" 384 768 1536
chrnx_validate_staged_family "about-grunge" 384 768 1536
chrnx_validate_staged_family "projects-grunge" 384 768 1536
set -- "$chrnx_image_stage"/*
if [ "$#" -ne 52 ]; then
echo "Responsive image staging expected 52 files, got $#." >&2
if [ "$#" -ne 76 ]; then
echo "Responsive image staging expected 76 files, got $#." >&2
exit 1
fi
for chrnx_image_staged in "$@"; do