dynamic_image 2.0.11 → 2.0.12
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/processed_image.rb +5 -0
- 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: bc4d3bfa16ca81f629710de3b1fcd699205eeab7
|
4
|
+
data.tar.gz: d95ad4a79d33e00cf6702ad64aaa17341e8ab654
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9030439eee02c0e679d3031a6f076d3fd16ad9a9fd5bb974e8eacb33e22d64ea9060702ff3ed22e8fa7bf7667c5d58eaeb886344f05089ebe60e55652960e71
|
7
|
+
data.tar.gz: acffa5e6bca9589df8b78b6230b41e8fd0c6dceba47d1afbc24c51843fd1166f2ede9377be2f8c1e5b77511eedead21a19c8c76658d9f63d299914839509af22
|
@@ -88,6 +88,10 @@ module DynamicImage
|
|
88
88
|
content_type == "image/gif"
|
89
89
|
end
|
90
90
|
|
91
|
+
def jpeg?
|
92
|
+
content_type == "image/jpeg" || content_type == "image/jpeg"
|
93
|
+
end
|
94
|
+
|
91
95
|
def image_sizing
|
92
96
|
@image_sizing ||= DynamicImage::ImageSizing.new(record,
|
93
97
|
uncropped: @uncropped)
|
@@ -104,6 +108,7 @@ module DynamicImage
|
|
104
108
|
def optimize(image)
|
105
109
|
image.layers "optimize" if gif?
|
106
110
|
image.strip
|
111
|
+
image.quality(85) if jpeg?
|
107
112
|
end
|
108
113
|
|
109
114
|
def process_data
|
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.12
|
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: 2018-
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|