File: exiftest.rb

package info (click to toggle)
libexif-ruby 0.1.2-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 128 kB
  • ctags: 47
  • sloc: ansic: 561; ruby: 21; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/ruby

require 'exif'

if ARGV.size < 1
  STDERR.puts "Usage: #{$0} filename [filenames...]"
  exit 0
end

ARGV.each do |f|
  exif = Exif.new(f)
  puts "#{f}:"
  exif.each_entry { |a,b| printf "TAG %-40.40s %s\n",a,b }
end