Skip to content

Instantly share code, notes, and snippets.

@piratefsh
Created March 2, 2016 03:22
Show Gist options
  • Save piratefsh/4b35df840d0343096ed7 to your computer and use it in GitHub Desktop.
Save piratefsh/4b35df840d0343096ed7 to your computer and use it in GitHub Desktop.
### batch convert image with imagemagick, preserve filename
for i in *.png; do convert "$i" -resize 400 "retina/${i%.*}@2x.png"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment