Created
August 20, 2011 10:53
-
-
Save temochka/1158958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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