Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/mrgnw/scripts.
Something went wrong. Try again.
123456789101112131415161718192021#!/usr/bin/env zshset -euo pipefailsetopt nocaseglob
if [[ ${#@} -gt 0 ]]; then files=("$@")else extensions=(${(f)"$(globs images -x avif)"}) files=() for ext in "${extensions[@]}"; do files+=(${~ext}(N)) donefi
if [[ ${#files[@]} -eq 0 ]]; then echo "No image files found." >&2 exit 1fi
img2avif "${files[@]}"