image_processing 2.2.2 → 2.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a81c5c941680dad68dc945c6943645401e6d1c7c18dc5bfaf17ca0c815204af
4
- data.tar.gz: 725c0f80e462375fe2b7e46800947a9fc9410890d49b5e12f50a6e781c458ce9
3
+ metadata.gz: e3e36618bead49c1b8e016007e1879456ef550f686801ffd8a2916522d4b9b4c
4
+ data.tar.gz: fc8b43b6f82f87ecb29ad66e7a2be1debe702e072bbe466c9f76a67ce10c83d0
5
5
  SHA512:
6
- metadata.gz: 8853de6a2dd8e43a0b50abd1cd47f82d67142ee6b6d915944b24ce249a0a07e576c12624913c5d4de57fba657d15c3717ce95ad1b00d2203717aaae28bfa161b
7
- data.tar.gz: dec521c4414f9c31a450e86976c3405f380d0a91704a618159fb6ba133ee1baca5f1d89b7b5158008e9e16d823b28469359d9a0f3a1c76af9417f0533cb1cb46
6
+ metadata.gz: a57d9673041f20e84d954214019eeaa24eb18ddd03951dceaba152335e5155bbbf9a1f7b1359c0711176e2dc402de3e77f1ddff0ea020a52f6d7a24fb5dec8a9
7
+ data.tar.gz: 978d2794c66bcbf091e469fd1c6f5188fa837c5d3ec99d2090e4348d66faf4e4551a8318b580c58a2ff9c5470f3422e964cec1fe62981291c9cd8b1b721c0155
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 2.3.0 (2026-12-04)
2
+
3
+ * Prevent remote code execution when operation names in `#apply` come from user input and chain onto a builder method that returns a non-builder object, such as `#options` (reported by @tippletech1)
4
+
5
+ * [vips] `.valid_image?` now returns `false` for truncated and corrupt images on libvips 8.12+
6
+
7
+ * [vips] Document the `:keep` saver option and the `:fail_on` loader option, which replace the deprecated `:strip` and `:fail` options
8
+
9
+ * Ruby 3.2+ is now required
10
+
11
+ * [vips] Add `#trim` for removing edges that match the background color, which defaults to the top-left pixel
12
+
1
13
  ## 2.2.2 (2026-11-22)
2
14
 
3
15
  * Allow operations defined in modules mixed into a processor or accumulator class again (e.g. `ImageProcessing::Vips::Processor.include(MyMacros)`), which 2.2.1 rejected
data/README.md CHANGED
@@ -210,7 +210,7 @@ block.
210
210
  ```rb
211
211
  pipeline = ImageProcessing::Vips.instrumenter do |**options, &processing|
212
212
  options[:source] #=> #<File:...>
213
- options[:loader] #=> { fail: true }
213
+ options[:loader] #=> { fail_on: :error }
214
214
  options[:saver] #=> { quality: 85 }
215
215
  options[:format] #=> "png"
216
216
  options[:operations] #=> [[:resize_to_limit, [500, 500]], [:flip, [:horizontal]]]
@@ -223,7 +223,7 @@ end
223
223
 
224
224
  pipeline
225
225
  .source(image)
226
- .loader(fail: true)
226
+ .loader(fail_on: :error)
227
227
  .saver(quality: 85)
228
228
  .convert("png")
229
229
  .resize_to_limit(500, 500)
@@ -4,7 +4,7 @@ Gem::Specification.new do |spec|
4
4
  spec.name = "image_processing"
5
5
  spec.version = ImageProcessing::VERSION
6
6
 
7
- spec.required_ruby_version = ">= 3.0"
7
+ spec.required_ruby_version = ">= 3.2"
8
8
 
9
9
  spec.summary = "High-level wrapper for processing images for the web with ImageMagick or libvips."
10
10
  spec.description = "High-level wrapper for processing images for the web with ImageMagick or libvips."
@@ -8,7 +8,7 @@ module ImageProcessing
8
8
 
9
9
  # Specify the output format.
10
10
  def convert(format)
11
- branch format: format
11
+ branch(format:)
12
12
  end
13
13
 
14
14
  # Specify processor options applied when loading the image.
@@ -33,19 +33,26 @@ module ImageProcessing
33
33
  # .apply([[:resize_to_limit, [400, 400]], [:strip, true])
34
34
  def apply(operations)
35
35
  operations.inject(self) do |builder, (name, argument)|
36
- if invalid_operation?(name)
36
+ if builder.send(:invalid_operation?, name)
37
37
  fail ArgumentError, "#{name.inspect} is not a valid ImageProcessing operation"
38
38
  end
39
39
 
40
- if argument == true || argument == nil
41
- builder.public_send(name)
42
- elsif argument.is_a?(Array)
43
- builder.public_send(name, *argument)
44
- elsif argument.is_a?(Hash)
45
- builder.public_send(name, **argument)
46
- else
47
- builder.public_send(name, argument)
40
+ result =
41
+ if argument == true || argument == nil
42
+ builder.public_send(name)
43
+ elsif argument.is_a?(Array)
44
+ builder.public_send(name, *argument)
45
+ elsif argument.is_a?(Hash)
46
+ builder.public_send(name, **argument)
47
+ else
48
+ builder.public_send(name, argument)
49
+ end
50
+
51
+ unless result.is_a?(Chainable)
52
+ fail ArgumentError, "#{name.inspect} is not a valid ImageProcessing operation"
48
53
  end
54
+
55
+ result
49
56
  end
50
57
  end
51
58
 
@@ -56,12 +63,12 @@ module ImageProcessing
56
63
 
57
64
  # Call the defined processing and get the result. Allows specifying
58
65
  # the source file and destination.
59
- def call(file = nil, destination: nil, **call_options)
66
+ def call(file = nil, destination: nil, **)
60
67
  options = {}
61
68
  options[:source] = file if file
62
69
  options[:destination] = destination if destination
63
70
 
64
- branch(**options).call!(**call_options)
71
+ branch(**options).call!(**)
65
72
  end
66
73
 
67
74
  # Creates a new builder object, merging current options with new options.
@@ -17,7 +17,7 @@ module ImageProcessing
17
17
  raise LoadError, "The `inherit_fds` loader option requires mini_magick #{INHERIT_FDS_MINIMUM_VERSION} or newer, but mini_magick #{::MiniMagick.version} is loaded. Please upgrade the gem."
18
18
  end
19
19
 
20
- options = inherit_fds ? { inherit_fds: inherit_fds } : {}
20
+ options = inherit_fds ? { inherit_fds: } : {}
21
21
 
22
22
  if ::MiniMagick.respond_to?(:convert)
23
23
  ::MiniMagick.convert(**options, &block)
@@ -50,14 +50,14 @@ module ImageProcessing
50
50
  # `/dev/fd/N` path. The source stays a path, so `loader`, `page` and
51
51
  # `geometry` still apply to it, which they would not if the caller passed
52
52
  # a pre-built MiniMagick::Tool carrying the descriptor.
53
- def self.load_image(path_or_magick, loader: nil, page: nil, geometry: nil, auto_orient: true, inherit_fds: nil, **options)
53
+ def self.load_image(path_or_magick, loader: nil, page: nil, geometry: nil, auto_orient: true, inherit_fds: nil, **)
54
54
  if path_or_magick.is_a?(::MiniMagick::Tool)
55
55
  magick = path_or_magick
56
56
  else
57
57
  source_path = path_or_magick
58
- magick = ::ImageProcessing::MiniMagick.convert_shim(inherit_fds: inherit_fds)
58
+ magick = ::ImageProcessing::MiniMagick.convert_shim(inherit_fds:)
59
59
 
60
- Utils.apply_options(magick, **options)
60
+ Utils.apply_options(magick, **)
61
61
 
62
62
  input = source_path
63
63
  input = "#{loader}:#{input}" if loader
@@ -75,8 +75,8 @@ module ImageProcessing
75
75
  # the result to disk. Accepts additional options related to saving the
76
76
  # image (e.g. quality). `format` names the output format when given,
77
77
  # otherwise ImageMagick infers it from the path's extension.
78
- def self.save_image(magick, destination_path, format = nil, allow_splitting: false, **options)
79
- Utils.apply_options(magick, **options)
78
+ def self.save_image(magick, destination_path, format = nil, allow_splitting: false, **)
79
+ Utils.apply_options(magick, **)
80
80
 
81
81
  if format
82
82
  # ImageMagick reads everything before the first colon as the
@@ -94,19 +94,19 @@ module ImageProcessing
94
94
  end
95
95
 
96
96
  # Resizes the image to not be larger than the specified dimensions.
97
- def resize_to_limit(width, height, **options)
98
- thumbnail("#{width}x#{height}>", **options)
97
+ def resize_to_limit(width, height, **)
98
+ thumbnail("#{width}x#{height}>", **)
99
99
  end
100
100
 
101
101
  # Resizes the image to fit within the specified dimensions.
102
- def resize_to_fit(width, height, **options)
103
- thumbnail("#{width}x#{height}", **options)
102
+ def resize_to_fit(width, height, **)
103
+ thumbnail("#{width}x#{height}", **)
104
104
  end
105
105
 
106
106
  # Resizes the image to fill the specified dimensions, applying any
107
107
  # necessary cropping.
108
- def resize_to_fill(width, height, gravity: "Center", **options)
109
- thumbnail("#{width}x#{height}^", **options)
108
+ def resize_to_fill(width, height, gravity: "Center", **)
109
+ thumbnail("#{width}x#{height}^", **)
110
110
  magick.gravity gravity
111
111
  magick.background color(:transparent)
112
112
  magick.extent "#{width}x#{height}"
@@ -114,8 +114,8 @@ module ImageProcessing
114
114
 
115
115
  # Resizes the image to fit within the specified dimensions and fills
116
116
  # the remaining area with the specified background color.
117
- def resize_and_pad(width, height, background: :transparent, gravity: "Center", **options)
118
- thumbnail("#{width}x#{height}", **options)
117
+ def resize_and_pad(width, height, background: :transparent, gravity: "Center", **)
118
+ thumbnail("#{width}x#{height}", **)
119
119
  magick.background color(background)
120
120
  magick.gravity gravity
121
121
  magick.extent "#{width}x#{height}"
@@ -123,8 +123,8 @@ module ImageProcessing
123
123
 
124
124
  # Resizes the image to cover the specified dimensions, without
125
125
  # cropping the excess.
126
- def resize_to_cover(width, height, **options)
127
- thumbnail("#{width}x#{height}^", **options)
126
+ def resize_to_cover(width, height, **)
127
+ thumbnail("#{width}x#{height}^", **)
128
128
  end
129
129
 
130
130
  # Crops the image with the specified crop points.
@@ -159,7 +159,7 @@ module ImageProcessing
159
159
  magick << mask_path if mask_path
160
160
 
161
161
  magick.compose(mode) if mode
162
- define(compose: { args: args }) if args
162
+ define(compose: { args: }) if args
163
163
 
164
164
  magick.gravity(gravity) if gravity
165
165
  magick.geometry(geometry) if geometry
@@ -22,9 +22,9 @@ module ImageProcessing
22
22
  elsif destination
23
23
  handle_destination do
24
24
  if format && !determine_format(destination)
25
- call_processor(destination: destination, format: format)
25
+ call_processor(destination:, format:)
26
26
  else
27
- call_processor(destination: destination)
27
+ call_processor(destination:)
28
28
  end
29
29
  end
30
30
  else
@@ -50,14 +50,8 @@ module ImageProcessing
50
50
 
51
51
  private
52
52
 
53
- def call_processor(**options)
54
- processor.call(
55
- source: source,
56
- loader: loader,
57
- operations: operations,
58
- saver: saver,
59
- **options
60
- )
53
+ def call_processor(**)
54
+ processor.call(source:, loader:, operations:, saver:, **)
61
55
  end
62
56
 
63
57
  # Creates a new tempfile for the destination file, yields it, and refreshes
@@ -1,3 +1,3 @@
1
1
  module ImageProcessing
2
- VERSION = "2.2.2"
2
+ VERSION = "2.3.0"
3
3
  end
@@ -13,7 +13,10 @@ module ImageProcessing
13
13
 
14
14
  # Returns whether the given image file is processable.
15
15
  def self.valid_image?(file)
16
- ::Vips::Image.new_from_file(file.path, access: :sequential).avg
16
+ # libvips loads truncated and corrupt images by default
17
+ options = ::Vips.at_least_libvips?(8, 12) ? { fail_on: :error } : {}
18
+
19
+ ::Vips::Image.new_from_file(file.path, access: :sequential, **options).avg
17
20
  true
18
21
  rescue ::Vips::Error
19
22
  false
@@ -81,34 +84,34 @@ module ImageProcessing
81
84
  end
82
85
 
83
86
  # Resizes the image to not be larger than the specified dimensions.
84
- def resize_to_limit(width, height, **options)
87
+ def resize_to_limit(width, height, **)
85
88
  width, height = default_dimensions(width, height)
86
- thumbnail(width, height, size: :down, **options)
89
+ thumbnail(width, height, size: :down, **)
87
90
  end
88
91
 
89
92
  # Resizes the image to fit within the specified dimensions.
90
- def resize_to_fit(width, height, **options)
93
+ def resize_to_fit(width, height, **)
91
94
  width, height = default_dimensions(width, height)
92
- thumbnail(width, height, **options)
95
+ thumbnail(width, height, **)
93
96
  end
94
97
 
95
98
  # Resizes the image to fill the specified dimensions, applying any
96
99
  # necessary cropping.
97
- def resize_to_fill(width, height, **options)
98
- thumbnail(width, height, crop: :centre, **options)
100
+ def resize_to_fill(width, height, **)
101
+ thumbnail(width, height, crop: :centre, **)
99
102
  end
100
103
 
101
104
  # Resizes the image to fit within the specified dimensions and fills
102
105
  # the remaining area with the specified background color.
103
- def resize_and_pad(width, height, gravity: "centre", extend: nil, background: nil, alpha: nil, **options)
104
- image = thumbnail(width, height, **options)
106
+ def resize_and_pad(width, height, gravity: "centre", extend: nil, background: nil, alpha: nil, **)
107
+ image = thumbnail(width, height, **)
105
108
  image = image.add_alpha if alpha && !image.has_alpha?
106
- image.gravity(gravity, width, height, extend: extend, background: background)
109
+ image.gravity(gravity, width, height, extend:, background:)
107
110
  end
108
111
 
109
112
  # Resizes the image to cover the specified dimensions, without
110
113
  # cropping the excess.
111
- def resize_to_cover(width, height, **options)
114
+ def resize_to_cover(width, height, **)
112
115
  image = self.image.is_a?(String) ? self.class.load_image(self.image) : self.image
113
116
 
114
117
  image_ratio = Rational(image.width, image.height)
@@ -120,7 +123,7 @@ module ImageProcessing
120
123
  height = ::Vips::MAX_COORD
121
124
  end
122
125
 
123
- thumbnail(width, height, **options, crop: :none)
126
+ thumbnail(width, height, **, crop: :none)
124
127
  end
125
128
 
126
129
  # Rotates the image by an arbitrary angle.
@@ -133,15 +136,43 @@ module ImageProcessing
133
136
  end
134
137
  end
135
138
 
139
+ # Removes edges that match the background color, which defaults to the
140
+ # color of the top-left pixel. Transparent edges are removed as well.
141
+ def trim(threshold: 10, background: nil, **)
142
+ # find_trim's median filter needs at least 3x3 pixels
143
+ return image if image.width < 3 || image.height < 3
144
+
145
+ color, alpha = trim_background(background)
146
+
147
+ box = image.find_trim(threshold:, background: color, **)
148
+
149
+ if image.has_alpha?
150
+ # Flattening can make content indistinguishable from a transparent
151
+ # background (e.g. black content on transparent black), so search
152
+ # the alpha channel separately and combine the results.
153
+ alpha_box = image.extract_band(image.bands - 1)
154
+ .find_trim(threshold:, background: [alpha], **)
155
+
156
+ box = union_box(box, alpha_box)
157
+ end
158
+
159
+ left, top, width, height = box
160
+
161
+ # the whole image is background
162
+ return image if width.zero? || height.zero?
163
+
164
+ image.crop(left, top, width, height)
165
+ end
166
+
136
167
  # Overlays the specified image over the current one. Supports specifying
137
168
  # composite mode, direction or offset of the overlay image.
138
- def composite(overlay, _mode = nil, mode: "over", gravity: "north-west", offset: nil, **options)
169
+ def composite(overlay, _mode = nil, mode: "over", gravity: "north-west", offset: nil, **)
139
170
  # if the mode argument is given, call the original Vips::Image#composite
140
171
  if _mode
141
172
  overlay = [overlay] unless overlay.is_a?(Array)
142
173
  overlay = overlay.map { |object| convert_to_image(object, "overlay") }
143
174
 
144
- return image.composite(overlay, _mode, **options)
175
+ return image.composite(overlay, _mode, **)
145
176
  end
146
177
 
147
178
  overlay = convert_to_image(overlay, "overlay")
@@ -158,7 +189,7 @@ module ImageProcessing
158
189
  overlay = overlay.gravity(gravity, image.width, image.height)
159
190
 
160
191
  # apply the composition
161
- image.composite(overlay, mode, **options)
192
+ image.composite(overlay, mode, **)
162
193
  end
163
194
 
164
195
  # make metadata setter methods chainable
@@ -174,13 +205,13 @@ module ImageProcessing
174
205
  def thumbnail(width, height, sharpen: nil, **options)
175
206
  if self.image.is_a?(String) # path
176
207
  # resize on load
177
- image = ::Vips::Image.thumbnail(self.image, width, height: height, **options)
208
+ image = ::Vips::Image.thumbnail(self.image, width, height:, **options)
178
209
  else
179
210
  # we're already calling Image#autorot when loading the image
180
211
  no_rotate = ::Vips.at_least_libvips?(8, 8) ? { no_rotate: true } : { auto_rotate: false }
181
212
  options = no_rotate.merge(options)
182
213
 
183
- image = self.image.thumbnail_image(width, height: height, **options)
214
+ image = self.image.thumbnail_image(width, height:, **options)
184
215
  end
185
216
 
186
217
  if sharpen
@@ -191,6 +222,33 @@ module ImageProcessing
191
222
  image
192
223
  end
193
224
 
225
+ # Returns the background color and alpha for #trim. Defaults to the
226
+ # top-left pixel, and takes the alpha from it when the given background
227
+ # doesn't include it.
228
+ def trim_background(background)
229
+ pixel = image.getpoint(0, 0)
230
+ background = Array(background || pixel)
231
+
232
+ return [background, nil] unless image.has_alpha?
233
+
234
+ alpha = background.size == image.bands ? background.last : pixel.last
235
+
236
+ [background.first(image.bands - 1), alpha]
237
+ end
238
+
239
+ # Returns the smallest box containing both boxes, ignoring empty ones.
240
+ def union_box((left1, top1, width1, height1), (left2, top2, width2, height2))
241
+ return [left2, top2, width2, height2] if width1.zero? || height1.zero?
242
+ return [left1, top1, width1, height1] if width2.zero? || height2.zero?
243
+
244
+ left = [left1, left2].min
245
+ top = [top1, top2].min
246
+ right = [left1 + width1, left2 + width2].max
247
+ bottom = [top1 + height1, top2 + height2].max
248
+
249
+ [left, top, right - left, bottom - top]
250
+ end
251
+
194
252
  # Hack to allow omitting one dimension.
195
253
  def default_dimensions(width, height)
196
254
  raise Error, "either width or height must be specified" unless width || height
@@ -33,8 +33,10 @@ module ImageProcessing
33
33
  else
34
34
  # A module such as Chainable can be extended into a Module object
35
35
  # (e.g. ImageProcessing::Vips), whose lookup also includes Module's
36
- # methods like #class_eval, so only the module itself is allowed.
37
- owner <= allowed_owner
36
+ # methods like #class_eval, so only the module itself is allowed. This
37
+ # also excludes classes including the module, such as Builder, whose
38
+ # methods (e.g. #options) can return objects other than builders.
39
+ owner == allowed_owner
38
40
  end
39
41
  end
40
42
  rescue NameError
metadata CHANGED
@@ -1,112 +1,120 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_processing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Janko Marohnić
7
+ - Janko Marohnić
8
8
  bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
- - !ruby/object:Gem::Dependency
13
- name: rake
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: '0'
19
- type: :development
20
- prerelease: false
21
- version_requirements: !ruby/object:Gem::Requirement
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: '0'
26
- - !ruby/object:Gem::Dependency
27
- name: minitest
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - "~>"
31
- - !ruby/object:Gem::Version
32
- version: '5.8'
33
- type: :development
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '5.8'
40
- - !ruby/object:Gem::Dependency
41
- name: minitest-hooks
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 1.4.2
47
- type: :development
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 1.4.2
54
- - !ruby/object:Gem::Dependency
55
- name: minispec-metadata
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
- type: :development
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- description: High-level wrapper for processing images for the web with ImageMagick
69
- or libvips.
12
+ - !ruby/object:Gem::Dependency
13
+ name: rake
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ -
17
+ - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: "0"
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ -
25
+ - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: "0"
28
+ - !ruby/object:Gem::Dependency
29
+ name: minitest
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ -
33
+ - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: "5.8"
36
+ type: :development
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ -
41
+ - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: "5.8"
44
+ - !ruby/object:Gem::Dependency
45
+ name: minitest-hooks
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ -
49
+ - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: 1.4.2
52
+ type: :development
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ -
57
+ - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: 1.4.2
60
+ - !ruby/object:Gem::Dependency
61
+ name: minispec-metadata
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ -
65
+ - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ -
73
+ - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
76
+ description: High-level wrapper for processing images for the web with ImageMagick or libvips.
70
77
  email:
71
- - janko.marohnic@gmail.com
78
+ - janko.marohnic@gmail.com
72
79
  executables: []
73
80
  extensions: []
74
81
  extra_rdoc_files: []
75
82
  files:
76
- - CHANGELOG.md
77
- - LICENSE.txt
78
- - README.md
79
- - image_processing.gemspec
80
- - lib/image_processing.rb
81
- - lib/image_processing/builder.rb
82
- - lib/image_processing/chainable.rb
83
- - lib/image_processing/mini_magick.rb
84
- - lib/image_processing/pipeline.rb
85
- - lib/image_processing/processor.rb
86
- - lib/image_processing/version.rb
87
- - lib/image_processing/vips.rb
88
- homepage: https://github.com/janko/image_processing
83
+ - CHANGELOG.md
84
+ - LICENSE.txt
85
+ - README.md
86
+ - image_processing.gemspec
87
+ - lib/image_processing.rb
88
+ - lib/image_processing/builder.rb
89
+ - lib/image_processing/chainable.rb
90
+ - lib/image_processing/mini_magick.rb
91
+ - lib/image_processing/pipeline.rb
92
+ - lib/image_processing/processor.rb
93
+ - lib/image_processing/version.rb
94
+ - lib/image_processing/vips.rb
95
+ homepage: "https://github.com/janko/image_processing"
89
96
  licenses:
90
- - MIT
97
+ - MIT
91
98
  metadata:
92
- changelog_uri: https://github.com/janko/image_processing/blob/master/CHANGELOG.md
93
- rubygems_mfa_required: 'true'
99
+ changelog_uri: "https://github.com/janko/image_processing/blob/master/CHANGELOG.md"
100
+ rubygems_mfa_required: "true"
94
101
  rdoc_options: []
95
102
  require_paths:
96
- - lib
103
+ - lib
97
104
  required_ruby_version: !ruby/object:Gem::Requirement
98
105
  requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- version: '3.0'
106
+ -
107
+ - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: "3.2"
102
110
  required_rubygems_version: !ruby/object:Gem::Requirement
103
111
  requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: '0'
112
+ -
113
+ - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: "0"
107
116
  requirements: []
108
- rubygems_version: 4.0.13
117
+ rubygems_version: 4.1.1
109
118
  specification_version: 4
110
- summary: High-level wrapper for processing images for the web with ImageMagick or
111
- libvips.
119
+ summary: High-level wrapper for processing images for the web with ImageMagick or libvips.
112
120
  test_files: []