fastimage 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastimage.rb +0 -7
- data/test/fixtures/exif_orientation.jpg +0 -0
- data/test/fixtures/orient_2.jpg +0 -0
- data/test/test.rb +3 -2
- metadata +23 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d922750baf3944066ebd6d111e43f93c53c6295
|
4
|
+
data.tar.gz: 475ce77b823d27771f51930695bc4a90dcada5f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a16be654c6c2e6d6199ac75f71403b56124b21a65d530e71f8b5f4732122b73cf2a29bf800df2b2e6dc210791754ac3ecfe736a317a4b0763565929ae2920a5f
|
7
|
+
data.tar.gz: ca50e122cfbec08af5d9f090e1aeefaa56890787168a9c8859b4707d2a5ebae9796a58392ac117b9782d13369c89c28fa2e3e268825042b1d70c04fdce90a50a
|
data/lib/fastimage.rb
CHANGED
@@ -475,13 +475,6 @@ class FastImage
|
|
475
475
|
end
|
476
476
|
@stream.read(2)
|
477
477
|
end
|
478
|
-
|
479
|
-
next_offset = @stream.read(4).unpack(@long)[0]
|
480
|
-
relative_offset = next_offset - (@stream.pos - @start_byte)
|
481
|
-
if relative_offset >= 0
|
482
|
-
@stream.read(relative_offset)
|
483
|
-
parse_exif_ifd
|
484
|
-
end
|
485
478
|
end
|
486
479
|
|
487
480
|
def parse_exif
|
Binary file
|
Binary file
|
data/test/test.rb
CHANGED
@@ -22,8 +22,9 @@ GoodFixtures = {
|
|
22
22
|
"test.tiff"=>[:tiff, [85, 67]],
|
23
23
|
"test2.tiff"=>[:tiff, [333, 225]],
|
24
24
|
"test.psd"=>[:psd, [17, 32]],
|
25
|
-
"exif_orientation.jpg"=>[:jpeg, [
|
26
|
-
"infinite.jpg"=>[:jpeg, [160,240]]
|
25
|
+
"exif_orientation.jpg"=>[:jpeg, [600, 450]],
|
26
|
+
"infinite.jpg"=>[:jpeg, [160,240]],
|
27
|
+
"orient_2.jpg"=>[:jpeg, [230,408]]
|
27
28
|
}
|
28
29
|
|
29
30
|
BadFixtures = [
|
metadata
CHANGED
@@ -1,75 +1,75 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastimage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Sykes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.3'
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.3.5
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '2.3'
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.3.5
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: fakeweb
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ~>
|
37
|
+
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.3'
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - ~>
|
44
|
+
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.3'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rake
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rdoc
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ">="
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
type: :development
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
description: FastImage finds the size or type of an image given its uri by fetching
|
@@ -84,44 +84,45 @@ files:
|
|
84
84
|
- README.textile
|
85
85
|
- lib/fastimage.rb
|
86
86
|
- lib/fastimage/fbr.rb
|
87
|
+
- test/fixtures/exif_orientation.jpg
|
87
88
|
- test/fixtures/faulty.jpg
|
89
|
+
- test/fixtures/folder with spaces/test.bmp
|
90
|
+
- test/fixtures/infinite.jpg
|
91
|
+
- test/fixtures/orient_2.jpg
|
88
92
|
- test/fixtures/test.bmp
|
89
93
|
- test/fixtures/test.gif
|
90
94
|
- test/fixtures/test.ico
|
91
95
|
- test/fixtures/test.jpg
|
92
96
|
- test/fixtures/test.png
|
97
|
+
- test/fixtures/test.psd
|
98
|
+
- test/fixtures/test.tiff
|
93
99
|
- test/fixtures/test2.jpg
|
100
|
+
- test/fixtures/test2.tiff
|
94
101
|
- test/fixtures/test3.jpg
|
95
102
|
- test/fixtures/test4.jpg
|
96
|
-
- test/fixtures/test.tiff
|
97
|
-
- test/fixtures/test2.tiff
|
98
|
-
- test/fixtures/exif_orientation.jpg
|
99
|
-
- test/fixtures/infinite.jpg
|
100
|
-
- test/fixtures/folder with spaces/test.bmp
|
101
103
|
- test/test.rb
|
102
|
-
- test/fixtures/test.psd
|
103
104
|
homepage: http://github.com/sdsykes/fastimage
|
104
105
|
licenses:
|
105
106
|
- MIT
|
106
107
|
metadata: {}
|
107
108
|
post_install_message:
|
108
109
|
rdoc_options:
|
109
|
-
- --charset=UTF-8
|
110
|
+
- "--charset=UTF-8"
|
110
111
|
require_paths:
|
111
112
|
- lib
|
112
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
113
114
|
requirements:
|
114
|
-
- -
|
115
|
+
- - ">="
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: '0'
|
117
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
119
|
requirements:
|
119
|
-
- -
|
120
|
+
- - ">="
|
120
121
|
- !ruby/object:Gem::Version
|
121
122
|
version: '0'
|
122
123
|
requirements: []
|
123
124
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.2.2
|
125
126
|
signing_key:
|
126
127
|
specification_version: 4
|
127
128
|
summary: FastImage - Image info fast
|