# Tapir brand art — render the PNG assets from the SVG sources (rsvg-convert).
#
#   just art render   # regenerate every PNG from the SVGs
#   just art icon     # just the app-icon sizes
#   just art banner   # just the social banner
#
# Sources: tapir-icon.svg, tapir-banner.svg. The committed PNGs are the outputs.
# (tapir-emoji-zoom.png is a hand-made crop and is not regenerated here.)

set shell := ["bash", "-uc"]

# Default: list recipes.
default:
    @just --list --unsorted

# Render all PNG assets.
render: icon banner

# App-icon sizes from tapir-icon.svg (1024, 512, and the 128px emoji).
icon:
    rsvg-convert -w 1024 -h 1024 tapir-icon.svg -o tapir-icon-1024.png
    rsvg-convert -w 512  -h 512  tapir-icon.svg -o tapir-icon-512.png
    rsvg-convert -w 128  -h 128  tapir-icon.svg -o tapir-emoji-128.png

# Social banner (1200x800) from tapir-banner.svg.
banner:
    rsvg-convert -w 1200 -h 800 tapir-banner.svg -o tapir-banner-1200x800.png
