dragonfly_libvips 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dragonfly_libvips.rb +1 -0
- data/lib/dragonfly_libvips/processors/thumb.rb +1 -0
- data/lib/dragonfly_libvips/version.rb +1 -1
- data/samples/cmyk.jpg +0 -0
- data/vendor/cmyk.icm +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8a48be96667ec7296450204b02cdbe2ce64180e
|
|
4
|
+
data.tar.gz: d3cb95688e18ce6f6f78a03f9030dfb94b26745a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77378df0ae8a668ef4f93da169f53b6c173fec02db2fbcc76322463bab38f854069a4d9689753ccb7a1794f20d26684368351d08eebd4d1ba367b2c634c5dea3
|
|
7
|
+
data.tar.gz: 85f0d0dba50b3d944ac7b1e7f811841a4d90bf0b4b3840dea996e3b32bb9fac7cf56f2e3bd93e7bef014a635ca8c9a99658f2288c682a8f2d35367ba213154fb
|
data/CHANGELOG.md
CHANGED
data/lib/dragonfly_libvips.rb
CHANGED
|
@@ -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
|
data/samples/cmyk.jpg
ADDED
|
Binary file
|
data/vendor/cmyk.icm
ADDED
|
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.
|
|
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-
|
|
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:
|