Skip to content

Instantly share code, notes, and snippets.

@gabrielgilini
Created February 20, 2015 13:06
Show Gist options
  • Save gabrielgilini/9cb5b883ff1da63e43fb to your computer and use it in GitHub Desktop.
Save gabrielgilini/9cb5b883ff1da63e43fb to your computer and use it in GitHub Desktop.
#!/bin/bash
for file in *.psd
do
convert "${file}[0]" -flatten -format jpg "$(basename -s .psd -- "$file").jpg"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment