#!/bin/bash
if command -v distrobox &>/dev/null; then distrobox enter -e "$0" "$@"; exit $?; fi

mkdir -p out

parallel -j 6 --eta '[[ ! -f "out/{.}.avif" ]] && magick {} -auto-orient -quality 60% -resize 645x645\> -colorspace sRGB -strip out/{.}.avif' ::: *.webp *-crop.jpg 16.jpg 17.jpg 18.jpg 19.jpg "Summer Time Rendering - 08 - 06m43s945t.jpg" "Summer Time Rendering - 25 - 10m08s650t.jpg"

magick kada.png -auto-orient -quality 60% -colorspace sRGB -strip out/kada.avif
magick map-2.png -auto-orient -quality 60% -resize 1200x1200\> -colorspace sRGB -strip out/map-2.avif

