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

mkdir -p out && parallel -j 6 --eta "magick {} -auto-orient -quality 70% -resize 572x572\> -interlace Plane -sampling-factor 4:2:0 -define jpeg:dct-method=float -colorspace sRGB -strip out/{}" ::: *.jpg
