#!/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 65% -resize 645x645\> -colorspace sRGB -strip out/{.}.avif" ::: *.png *-crop.jpg

