exifr 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -1
- data/lib/jpeg.rb +3 -3
- metadata +4 -3
data/CHANGELOG
CHANGED
@@ -1,7 +1,10 @@
|
|
1
|
+
EXIF Reader 0.9.4
|
2
|
+
* bug fix (thanks to Benjamin Storrier for providing me with sample date);
|
3
|
+
multiple app1 frames will potentially overwrite EXIF tag
|
4
|
+
|
1
5
|
EXIF Reader 0.9.3
|
2
6
|
* bug fix; "[#4876] Unable to extract gpsinfo"
|
3
7
|
* one-off bug in TiffHeader found and fixed
|
4
|
-
* make "InteroperabilityIndex" available
|
5
8
|
|
6
9
|
EXIF Reader 0.9.2
|
7
10
|
* bug fix; "[#4595] EXIFR::JPEG doesn't support multiple comments", the
|
data/lib/jpeg.rb
CHANGED
@@ -50,7 +50,7 @@ module EXIFR
|
|
50
50
|
end
|
51
51
|
end unless io.respond_to? :readsof
|
52
52
|
|
53
|
-
|
53
|
+
app1s = []
|
54
54
|
while marker = io.next
|
55
55
|
case marker
|
56
56
|
when 0xC0..0xC3, 0xC5..0xC7, 0xC9..0xCB, 0xCD..0xCF # SOF markers
|
@@ -58,14 +58,14 @@ module EXIFR
|
|
58
58
|
raise 'malformed JPEG' unless length == 8 + components * 3
|
59
59
|
when 0xD9, 0xDA: break # EOI, SOS
|
60
60
|
when 0xFE: (@comment ||= []) << io.readframe # COM
|
61
|
-
when 0xE1:
|
61
|
+
when 0xE1: app1s << io.readframe # APP1, may contain EXIF tag
|
62
62
|
else io.readframe # ignore frame
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
66
|
@comment = @comment.first if @comment && @comment.size == 1
|
67
67
|
|
68
|
-
if app1
|
68
|
+
if app1 = app1s.find { |d| d[0..5] == "Exif\0\0" }
|
69
69
|
@exif = EXIF.new(app1[6..-1]) # rescue nil
|
70
70
|
end
|
71
71
|
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: exifr
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.9.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.9.4
|
7
|
+
date: 2006-08-14 00:00:00 +02:00
|
8
8
|
summary: EXIF Reader is a module to read EXIF from JPEG images.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -25,6 +25,7 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
post_install_message:
|
28
29
|
authors:
|
29
30
|
- R.W. van 't Veer
|
30
31
|
files:
|