12 34 schrieb:
> I wanted to list all the EXIF data for a photo. Is there a method for
> that? Equivalent to ExifTool:
> 
> exiftool -h filepath
> 
> Thanks

You should better ask this at rubyforge:
http://rubyforge.org/tracker/?group_id=2912

You can use the method tags, which returns an array of all tags of the file.

Here a simple example (no HTML output but this shouldn't be difficult to
adapt):


require 'mini_exiftool'

photo = MiniExiftool.new 'file.jpg'

photo.tags.sort.each do |tag|
  puts tag + ': ' + photo[tag]
end


Have a look at the API-documentation
http://miniexiftool.rubyforge.org/
and the turorial
http://miniexiftool.rubyforge.org/files/Tutorial.html

Best regards
Jan