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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35a0714b6480895b6fe888e241cf98863604ff22ec5376db0b6d2659eccae9e0
4
- data.tar.gz: 95155abc03c148170406ffa39b40d2ea681dc7c805e8508cd23e52fc248536e9
3
+ metadata.gz: 75355bb0e91b8fc13874a7c196526c0e4e658e046f4192641c9e3fb4dae49033
4
+ data.tar.gz: 2771e8e03277bc8b152641698e44cb8e7baa5428bdc67f0af2d86a201078f0d8
5
5
  SHA512:
6
- metadata.gz: 226306b7dde62d707e055c293a584b7c2c77041a827cc35b95407987c39d07aa641cf3d24794029b780366ff8609f286ac0f99415589c7437e1bfbf4cfd81d9e
7
- data.tar.gz: 2bc5e7ffee362a0ab619f5ec1abf096be8c04a3bec5057ac40707da5bf3ee4eeadfeb84fbed6e47a2a39c9d65b3017922c15b6371353cca35848c99f11aaee80
6
+ metadata.gz: 4dc6c6d07b03e6f51f1c829c72a7d42958617e1ab8614bb8238f6c56073a95b2408340c7d54f54ee0089d13cea8e2f10ec90e215e73eff022cf37b4a9c10e95c
7
+ data.tar.gz: 3d0a3ddb0215cf989fb694564f74112efc3c895a9f41f851dc506b32ecaa749e6fe2845bf688e67171e34687fcdd11a9d7a1caaa39a462cfaeb03003196e0a77
@@ -1,3 +1,7 @@
1
+ ## 1.10.3 (2020-01-12)
2
+
3
+ * [vips] Fix auto-rotation not working in certain cases on libvips 8.9.0 (@janko)
4
+
1
5
  ## 1.10.2 (2020-01-11)
2
6
 
3
7
  * Fix Ruby 2.7 warnings for separation of positional and keyword arguments (@kamipo, @janko)
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
6
6
 
7
7
  spec.required_ruby_version = ">= 2.3"
8
8
 
9
- spec.summary = "Set of higher-level helper methods for image processing."
10
- spec.description = "Set of higher-level helper methods for image processing."
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"]
@@ -1,3 +1,3 @@
1
1
  module ImageProcessing
2
- VERSION = "1.10.2"
2
+ VERSION = "1.10.3"
3
3
  end
@@ -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.2
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 00:00:00.000000000 Z
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: Set of higher-level helper methods for image processing.
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: Set of higher-level helper methods for image processing.
165
+ summary: High-level wrapper for processing images for the web with ImageMagick or
166
+ libvips.
165
167
  test_files: []