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

for i in *.jpg; do magick $i -auto-orient -quality 75% -resize 1200x1200\> -interlace Plane -sampling-factor 4:2:0 -define jpeg:dct-method=float -colorspace sRGB -strip out/$i; done;

