Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 1.16 KB

README.md

File metadata and controls

71 lines (42 loc) · 1.16 KB

scripts

Scripts for development, deployment, and image processing. Run these from the project root.

dev.sh

Hosts a web server while live compiling any Typescript changes you make.

Requires:

  • node, npm, npm install

Usage:

./scripts/dev.sh

art.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>

scrape_art.sh

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>

download.sh / download_hires.sh

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>

process_art.sh

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>