This repo contains the source for photos.reupen.uk, a website I created for displaying photos I’ve taken.
The site was built using Astro and uses sharp to convert images.
Most source images are stored as downscaled lossless 8-bit WebP files, which are converted to lossy AVIF and WebP images when building the site.
Git Large File Storage (LFS) is used to manage large files.
Linux is required to build the site, due to the use of a custom build of libvips with sharp.
To build the site:
-
Install Node.js
-
Install Python
-
Install Nix
-
Start a Nix shell:
nix-shell
-
Install JavaScript dependencies:
npm install
-
Build the site:
npm run build
-
Run the preview server:
npm run preview
See the Astro documentation for more information on using Astro.