dragonfly_libvips 2.1.0 → 2.1.1

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: 06644e1c4dec0b4e785390a7414522c662018bcc
4
- data.tar.gz: aaf43c2978f8a87992d0ccc13bf689a1f3b3a02f
3
+ metadata.gz: e8a48be96667ec7296450204b02cdbe2ce64180e
4
+ data.tar.gz: d3cb95688e18ce6f6f78a03f9030dfb94b26745a
5
5
  SHA512:
6
- metadata.gz: 670f2d8d7b42eaa5246496000cfafa31fb44e761fe1e643d883dbbaef5a723fc35ad522a864657e17a80ef1978601fae96570af0cb693543cd1a0d962de3bdbc
7
- data.tar.gz: c84c9cf19b33c3b4b4c2cfa07670f51587b51e6e28cdd700792d48b6df704f0cad51473ec0bea240d356c6f4d7b4c51b197c34be21e42349c275db4ca7043403
6
+ metadata.gz: 77378df0ae8a668ef4f93da169f53b6c173fec02db2fbcc76322463bab38f854069a4d9689753ccb7a1794f20d26684368351d08eebd4d1ba367b2c634c5dea3
7
+ data.tar.gz: 85f0d0dba50b3d944ac7b1e7f811841a4d90bf0b4b3840dea996e3b32bb9fac7cf56f2e3bd93e7bef014a635ca8c9a99658f2288c682a8f2d35367ba213154fb
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.1.1
4
+
5
+ * add `CMYK` support using the `cmyk.icm` profile
6
+
3
7
  ## 2.1.0
4
8
 
5
9
  * `thumb` process refactored for `Vips::Image.thumbnail`, with faster performance
@@ -5,5 +5,6 @@ require 'dragonfly_libvips/version'
5
5
  require 'vips'
6
6
 
7
7
  module DragonflyLibvips
8
+ CMYK_PROFILE_PATH = File.expand_path('../vendor/cmyk.icm', __dir__)
8
9
  EPROFILE_PATH = File.expand_path('../vendor/sRGB_v4_ICC_preference.icc', __dir__)
9
10
  end
@@ -40,6 +40,7 @@ module DragonflyLibvips
40
40
  thumbnail_options = options.fetch(:thumbnail_options, {})
41
41
  thumbnail_options[:auto_rotate] = input_options.fetch(:autorotate, true) if content.mime_type == 'image/jpeg'
42
42
  thumbnail_options[:height] = thumbnail_options.fetch(:height, dimensions.height.ceil)
43
+ thumbnail_options[:import_profile] = DragonflyLibvips::CMYK_PROFILE_PATH if img.get('interpretation') == :cmyk
43
44
  thumbnail_options[:size] ||= case geometry
44
45
  when />\z/ then :down # do_not_resize_if_image_smaller_than_requested
45
46
  when /<\z/ then :up # do_not_resize_if_image_larger_than_requested
@@ -1,3 +1,3 @@
1
1
  module DragonflyLibvips
2
- VERSION = '2.1.0'.freeze
2
+ VERSION = '2.1.1'.freeze
3
3
  end
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly_libvips
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-01 00:00:00.000000000 Z
11
+ date: 2017-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dragonfly
@@ -155,9 +155,11 @@ files:
155
155
  - lib/dragonfly_libvips/processors/thumb.rb
156
156
  - lib/dragonfly_libvips/version.rb
157
157
  - samples/beach.png
158
+ - samples/cmyk.jpg
158
159
  - samples/landscape_beach.png
159
160
  - samples/memo.pdf
160
161
  - samples/white pixel.png
162
+ - vendor/cmyk.icm
161
163
  - vendor/sRGB_v4_ICC_preference.icc
162
164
  homepage: https://github.com/tomasc/dragonfly_libvips
163
165
  licenses: