Skip to content

Instantly share code, notes, and snippets.

@oisin
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oisin/d9804ed2330da2de7c23 to your computer and use it in GitHub Desktop.
Save oisin/d9804ed2330da2de7c23 to your computer and use it in GitHub Desktop.
Convert all TIFF files in the current directory to PNG
# Crush all the Pings!
for i in *.png
pngcrush "$i" `basename -s .png "$i"`-crushed.png
# Convert all ye tiffs to pngs
foreach i in *.tiff
do
convert "$i" `basename -s .tiff "$i"`.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment