Does anyone have Ruby code for reading a TIFF image file’s width/height
tags? Thx - m.
matt neuburg wrote:
Does anyone have Ruby code for reading a TIFF image file’s width/height
tags? Thx - m.
You can use MiniExiftool (http://rubyforge.org/projects/miniexiftool)
but
it is maybe a little bit oversized for only get the image width an
height.
Regards
Jan
TIFF is a bit hairy so it’s pretty hard to do this in a one-liner.
Try EXIF Reader[1];
$ sudo gem install exifr
…
$ irb -rubygems
require ‘exifr’
=> true
EXIFR::TIFF.new(‘some_image.tif’).width
=> 269
Jan F. [email protected] wrote:
matt neuburg wrote:
Does anyone have Ruby code for reading a TIFF image file’s width/height
tags? Thx - m.You can use MiniExiftool (http://rubyforge.org/projects/miniexiftool) but
it is maybe a little bit oversized for only get the image width an height.
Thanks! m.