diff --git a/compress-images.sh b/compress-images.sh index a3e9f41..76ea633 100755 --- a/compress-images.sh +++ b/compress-images.sh @@ -1,3 +1,17 @@ -find ./dist \( -iname "*.jpg" -o -iname "*.jpeg" \) | jpegoptim -p -P --files-stdin -w $(nproc --all) -oxipng -o max -a -r ./dist +#!/bin/bash +if command -v jpegoptim >/dev/null 2>&1 ; then + echo "jpegoptim found" + find ./dist \( -iname "*.jpg" -o -iname "*.jpeg" \) | jpegoptim -p -P --files-stdin -w $(nproc --all) +else + echo "jpegoptim was not found! install either with your package manager or get the binary from the github" + echo "https://github.com/tjko/jpegoptim/releases/latest" +fi + +if command -v oxipng >/dev/null 2>&1 ; then + echo "oxipng found" + oxipng -o max -a -r ./dist +else + echo "oxipng was not found! install with your package manager, cargo or get the binary from the github" + echo "https://github.com/shssoichiro/oxipng/releases/latest" +fi diff --git a/shell.nix b/shell.nix index eb83e6e..ea77611 100644 --- a/shell.nix +++ b/shell.nix @@ -7,8 +7,5 @@ pkgs.mkShell { pkgs.nodejs pkgs.pnpm pkgs.biome - pkgs.oxipng - pkgs.jpegoptim - pkgs.croc ]; } diff --git a/src/pages/extreme-format-test.astro b/src/pages/extreme-format-test.astro index 091ff48..438fe83 100644 --- a/src/pages/extreme-format-test.astro +++ b/src/pages/extreme-format-test.astro @@ -4,7 +4,7 @@ import "../styles/aria.css"; import Partition from "../components/Partition.astro"; import BaseLayout from "../layouts/BaseLayout.astro"; -const pageTitle = "Extreme format test"; +const pageTitle = "Extreme partition test"; const description = "All of Aria's friends with 88x31 buttons for you to click on!!"; ---