dynamic_image 2.0.12 → 2.0.13
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 -1
- data/lib/dynamic_image/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5235c5c6dd04f5af0cbe9fcb4c293efe989c813
|
4
|
+
data.tar.gz: e403c4b977e1b3e4b2d9160da2906a4085eb97c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc7e89d53054bbd04c0cbc2a0c95c36c0314b44c0bf2e04b3cd473e085e86a096b1d36fed8b4c8627c1dae53eefa04d31080ad266c093f97a3a1d1651f54bb46
|
7
|
+
data.tar.gz: b2d747f2c2dd3e2e45b7f41130b4397dd21abed915fd2990deebdd4a170b16a09978c47502f1b5c8114a4a5cc8516462d392d852b7c976f5652dfd93e6538ee9
|
@@ -108,7 +108,11 @@ module DynamicImage
|
|
108
108
|
def optimize(image)
|
109
109
|
image.layers "optimize" if gif?
|
110
110
|
image.strip
|
111
|
-
|
111
|
+
if jpeg?
|
112
|
+
image.quality(85)
|
113
|
+
image.sampling_factor "4:2:0"
|
114
|
+
image.interlace "JPEG"
|
115
|
+
end
|
112
116
|
end
|
113
117
|
|
114
118
|
def process_data
|