bin/exifr in exifr-1.0.0 vs bin/exifr in exifr-1.0.1
- old
+ new
@@ -36,9 +36,17 @@
l.each{|k,v|puts f % [k, [v].flatten.map{|t|t.to_s}.join(', ')]}
end
if ARGV.size == 0
STDERR.puts "Usage: #{$0} FILE .."
+elsif ARGV[0] == "--dump-exif"
+ ARGV[1..-1].each do |fname|
+ STDOUT.write JPEG.new(fname).exif_data
+ end
+elsif ARGV[0] == "--dump-thumbnail"
+ ARGV[1..-1].each do |fname|
+ STDOUT.write JPEG.new(fname).thumbnail
+ end
else
ARGV.each do |fname|
case fname
when /\.(jpg|jpeg)$/i; pp_jpeg fname
when /\.(tif|tiff)$/i; pp_tiff fname