Skip to content

Instantly share code, notes, and snippets.

@temochka
Created August 20, 2011 10:53
Show Gist options
  • Save temochka/1158958 to your computer and use it in GitHub Desktop.
Save temochka/1158958 to your computer and use it in GitHub Desktop.
#!/usr/bin/ruby1.9.1
abort "Specify input and output dirs please" if ARGV.length != 2
in_dir, out_dir = ARGV
Dir.chdir in_dir
Dir.foreach(in_dir) do |file|
in_file = File.join(in_dir, file)
`ufraw-batch --wb=camera --exposure=auto --out-type=jpeg #{in_file} --out-path=#{out_dir}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment