Skip to content

Instantly share code, notes, and snippets.

@tylerlittlefield
Created March 18, 2019 20:38
Show Gist options
  • Save tylerlittlefield/f959a23f35eb4f4ce6ae3435d40496d0 to your computer and use it in GitHub Desktop.
Save tylerlittlefield/f959a23f35eb4f4ce6ae3435d40496d0 to your computer and use it in GitHub Desktop.
Recursively convert images
# src: https://superuser.com/questions/71028/batch-converting-png-to-jpg-in-linux
find . -iname '*.png' | while read i; do mogrify -format jpg "$i" && rm "$i"; echo "Converted $i to ${i%.*}.jpg"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment