Scripts for development, deployment, and image processing. Run these from the project root.
Hosts a web server while live compiling any Typescript changes you make.
Requires:
node
,npm
,npm install
Usage:
./scripts/dev.sh
Converts an art URL into a texture, normal map, and depth map in public/art/<name>
Usage:
./scripts/art.sh <valid_url> <short_hyphenated_name_for_art>
Scrapes public domain artwork from Wikipedia, WikiArt, or Google Arts & Culture to get its physical dimensions and full-resolution image URL.
Requires:
deno
Usage:
./scripts/scrape_art.sh <url>
Uses dezoomify-rs or curl to download high-res artwork and save it locally.
Requires:
cargo
,cargo install dezoomify-rs
,libcurl
,python3
Usage:
./scripts/download_hires.sh <url> <output_file>
Processes local images, generating normal & height maps for it, and slicing images into 4096x4096 chunks.
Requires:
python3
,pip install -r requirements.txt
Usage:
./scripts/process_art.sh <input_file> <output_path>