image_processing 1.10.2 → 1.10.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of image_processing might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/image_processing.gemspec +2 -2
- data/lib/image_processing/version.rb +1 -1
- data/lib/image_processing/vips.rb +5 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75355bb0e91b8fc13874a7c196526c0e4e658e046f4192641c9e3fb4dae49033
|
4
|
+
data.tar.gz: 2771e8e03277bc8b152641698e44cb8e7baa5428bdc67f0af2d86a201078f0d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dc6c6d07b03e6f51f1c829c72a7d42958617e1ab8614bb8238f6c56073a95b2408340c7d54f54ee0089d13cea8e2f10ec90e215e73eff022cf37b4a9c10e95c
|
7
|
+
data.tar.gz: 3d0a3ddb0215cf989fb694564f74112efc3c895a9f41f851dc506b32ecaa749e6fe2845bf688e67171e34687fcdd11a9d7a1caaa39a462cfaeb03003196e0a77
|
data/CHANGELOG.md
CHANGED
data/image_processing.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
|
|
6
6
|
|
7
7
|
spec.required_ruby_version = ">= 2.3"
|
8
8
|
|
9
|
-
spec.summary = "
|
10
|
-
spec.description = "
|
9
|
+
spec.summary = "High-level wrapper for processing images for the web with ImageMagick or libvips."
|
10
|
+
spec.description = "High-level wrapper for processing images for the web with ImageMagick or libvips."
|
11
11
|
spec.homepage = "https://github.com/janko/image_processing"
|
12
12
|
spec.authors = ["Janko Marohnić"]
|
13
13
|
spec.email = ["janko.marohnic@gmail.com"]
|
@@ -138,8 +138,13 @@ module ImageProcessing
|
|
138
138
|
# resize on load
|
139
139
|
image = ::Vips::Image.thumbnail(self.image, width, height: height, **options)
|
140
140
|
else
|
141
|
+
# we're already calling Image#autorot when loading the image
|
142
|
+
no_rotate = ::Vips.at_least_libvips?(8, 8) ? { no_rotate: true } : { auto_rotate: false }
|
143
|
+
options = no_rotate.merge(options)
|
144
|
+
|
141
145
|
image = self.image.thumbnail_image(width, height: height, **options)
|
142
146
|
end
|
147
|
+
|
143
148
|
image = image.conv(sharpen, precision: :integer) if sharpen
|
144
149
|
image
|
145
150
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: image_processing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mini_magick
|
@@ -120,7 +120,8 @@ dependencies:
|
|
120
120
|
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
|
-
description:
|
123
|
+
description: High-level wrapper for processing images for the web with ImageMagick
|
124
|
+
or libvips.
|
124
125
|
email:
|
125
126
|
- janko.marohnic@gmail.com
|
126
127
|
executables: []
|
@@ -161,5 +162,6 @@ requirements: []
|
|
161
162
|
rubygems_version: 3.1.2
|
162
163
|
signing_key:
|
163
164
|
specification_version: 4
|
164
|
-
summary:
|
165
|
+
summary: High-level wrapper for processing images for the web with ImageMagick or
|
166
|
+
libvips.
|
165
167
|
test_files: []
|