Skip to content

Instantly share code, notes, and snippets.

@slamer59
Created December 1, 2022 09:28
Show Gist options
  • Save slamer59/c6e94a8484a33a13673e0163708cbc1a to your computer and use it in GitHub Desktop.
Save slamer59/c6e94a8484a33a13673e0163708cbc1a to your computer and use it in GitHub Desktop.
Conversion image en carré
find . -name "*.*" -exec convert "{}" -set option:distort:viewport "%[fx:max(w,h)]x%[fx:max(w,h)]+%[fx:(w-max(w,h))/2]+%[fx:(h-max(w,h))/2]" -virtual-pixel transparent -filter point -distort SRT 0 +repage "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment