Skip to content

Instantly share code, notes, and snippets.

@radavis
Last active February 24, 2016 12:34
Show Gist options
  • Save radavis/a8c2d6c7524e775fcf03 to your computer and use it in GitHub Desktop.
Save radavis/a8c2d6c7524e775fcf03 to your computer and use it in GitHub Desktop.
Mass converting CR2 files

Mass converting CR2 files

$ brew uninstall imagemagick
$ brew install ufraw ghostscript
$ brew install imagemagick
#!/bin/bash

for file in *.CR2; do
  name=${file%.*} 
  convert $file \
    -resize 15% \
    -quality 10 \
    -fill white \
    -undercolor '#00000080' \
    -gravity South \
    -font Helvetica \
    -pointsize 36 \
    -annotate +0+5 " ${name//_/ } " \
    $name.png 
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment