logo

blog

My website can't be that messy, right? git clone https://anongit.hacktivis.me/git/blog.git/

script.sh (319B)


  1. #!/bin/sh
  2. # SPDX-FileCopyrightText: 2023 Haelwenn (lanodan) Monnier <contact+blog@hacktivis.me>
  3. # SPDX-License-Identifier: MIT
  4. set -e
  5. mkdir -p thumbs
  6. for img in *.JPG; do
  7. test -e "./thumbs/$img" && continue
  8. gm convert "$img" -resize 25% -auto-orient -quality 69% "./thumbs/$img"
  9. jpegoptim -s "./thumbs/$img"
  10. done