#!/bin/bash

main() {
  for img in *.png *.svg; do
    local out="${img%.*}.webp"
    # 10% of max width 1200px
    magick "$img" -resize x120 "$out"
  done
}

main "$@"
