README.rdoc in exifr-1.2.6 vs README.rdoc in exifr-1.3.0
- old
+ new
@@ -1,27 +1,31 @@
= EXIF Reader
+{<img src="https://badge.fury.io/rb/exifr.svg" alt="Gem Version" />}[https://badge.fury.io/rb/exifr]
+{<img src="https://circleci.com/gh/remvee/exifr/tree/master.svg?style=shield&circle-token=7d957be2d7195f5d07a7c1962926ee626b050c2e" alt="Circle CI" />}[https://circleci.com/gh/remvee/exifr]
+
EXIF Reader is a module to read metadata from JPEG and TIFF images.
== Examples
+ require 'exifr/jpeg'
EXIFR::JPEG.new('IMG_6841.JPG').width # => 2272
EXIFR::JPEG.new('IMG_6841.JPG').height # => 1704
EXIFR::JPEG.new('IMG_6841.JPG').exif? # => true
EXIFR::JPEG.new('IMG_6841.JPG').model # => "Canon PowerShot G3"
EXIFR::JPEG.new('IMG_6841.JPG').date_time # => Fri Feb 09 16:48:54 +0100 2007
EXIFR::JPEG.new('IMG_6841.JPG').exposure_time.to_s # => "1/15"
EXIFR::JPEG.new('IMG_6841.JPG').f_number.to_f # => 2.0
+ EXIFR::JPEG.new('enkhuizen.jpg').gps.latitude # => 52.7197888888889
+ EXIFR::JPEG.new('enkhuizen.jpg').gps.longitude # => 5.28397777777778
+ require 'exifr/tiff'
EXIFR::TIFF.new('DSC_0218.TIF').width # => 3008
EXIFR::TIFF.new('DSC_0218.TIF')[1].width # => 160
EXIFR::TIFF.new('DSC_0218.TIF').model # => "NIKON D1X"
EXIFR::TIFF.new('DSC_0218.TIF').date_time # => Tue May 23 19:15:32 +0200 2006
EXIFR::TIFF.new('DSC_0218.TIF').exposure_time.to_s # => "1/100"
EXIFR::TIFF.new('DSC_0218.TIF').f_number.to_f # => 5.0
- EXIFR::JPEG.new('enkhuizen.jpg').gps.latitude # => 52.7197888888889
- EXIFR::JPEG.new('enkhuizen.jpg').gps.longitude # => 5.28397777777778
-
== Logging warnings
When EXIF information is malformed, a warning is logged to STDERR with
the standard Ruby logger. Log to some other location by supplying an
alternative implementation:
@@ -48,6 +52,6 @@
== Author
R.W. van 't Veer
== Copyright
-Copyright (c) 2006-2015 - R.W. van 't Veer
+Copyright (c) 2006-2017 - R.W. van 't Veer