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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35a434bf3ccd34a01d237f101581ceeeed54c5cc
4
- data.tar.gz: c8f721c53f80dd93cf43500da0f2b732676bc590
3
+ metadata.gz: bc4d3bfa16ca81f629710de3b1fcd699205eeab7
4
+ data.tar.gz: d95ad4a79d33e00cf6702ad64aaa17341e8ab654
5
5
  SHA512:
6
- metadata.gz: 9a2f09d0a3759f4415dcd270c7e0937aa1ec0c61520c8afbbfad5cef41ccbd0804c94849fb66465ab3d654ea8db77c7f88e1a9213506c779760867f70ce854a6
7
- data.tar.gz: cd06b2ca1d285c6e6bba49fbcba1acfdd6dfe07ad65fdf0c0ae4195a87dea596d368a0490213a0c050bea1cb208b63e653839fe8f03f8dcfadf837475788bbaf
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module DynamicImage
4
- VERSION = "2.0.11".freeze
4
+ VERSION = "2.0.12".freeze
5
5
  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.11
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-04-04 00:00:00.000000000 Z
11
+ date: 2018-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails