rails read digital photo

1 gem install exifr

2 $ irb -rubygems
>> require 'exifr'
true
>> EXIFR::JPEG.new('IMG_1234.JPG').exposure_time.to_s
1/500

你可能感兴趣的:(ROR)