dynamic_image 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dynamic_image/image_reader.rb +4 -2
- data/lib/dynamic_image/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3a9597cb144c71c74b3fc1eaa38463693810813
|
4
|
+
data.tar.gz: e17af5e280cf6e254cb2c986666ca46601cbfd91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e01e570c5b0876f69e9d0741f0720ce151d26e2c3036964ab7d32234e542893093b8c9e2015ea8d00608e61b64e5fddf1d0e07f32bd045a171781464863fd18c
|
7
|
+
data.tar.gz: 39cf3af7b77ea8cb814156847c2752e449a25b8554411b60d6528eb9070c584d699db6f82e5576200796e7ff2af310f0836967471c7bd1280b7910e09e9f1656
|
@@ -38,8 +38,10 @@ module DynamicImage
|
|
38
38
|
def jpeg_magic_bytes
|
39
39
|
[
|
40
40
|
"\xff\xd8\xff\xdb".force_encoding("binary"),
|
41
|
-
Regexp.new("\xff\xd8\xff\xe0(.*){2}JFIF".force_encoding("binary")
|
42
|
-
|
41
|
+
Regexp.new("\xff\xd8\xff\xe0(.*){2}JFIF".force_encoding("binary"),
|
42
|
+
Regexp::MULTILINE),
|
43
|
+
Regexp.new("\xff\xd8\xff\xe1(.*){2}Exif".force_encoding("binary"),
|
44
|
+
Regexp::MULTILINE),
|
43
45
|
"\xff\xd8\xff\xee\x00\x0e".force_encoding("binary") # Adobe JPEG
|
44
46
|
]
|
45
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dynamic_image
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Inge Jørgensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|