Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
`readlong': undefined method `unpack' for nil:NilClass (NoMethodError) #20
EXIFR::TIFF::Data#readlong throws exception for this image file.
This photo was taken by Galaxy S camera in consinuous shooting mode.
backtrace is below.
readlong (and also readshort) try to access data out of range.
In my case, I wrote wrapper method and catched all exception from readlong.
I'm using rails, so I put these code in config/environment.rb.
my envrionment: ruby version 1.8.6, exifr version 1.0.5 (newest)