image_processing 1.9.3 → 1.10.0

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: 8ab84d40ad0605bafb61684f6f684c95b9bea98ff808791b8ee7316133f3f4c8
4
- data.tar.gz: aa388b9bf19c55e869d4dfce8c4c47a82621c35022ddb77bcf6d940dcc0a9edc
3
+ metadata.gz: e15f100c14c6b60a0107e1d3b2f6ff41e2890f9ecd1fb3f73ae4838249650746
4
+ data.tar.gz: 2a8c07a6891465aebb7d172354780a5cba8d75933c4c7354d7b68acf8c6b321f
5
5
  SHA512:
6
- metadata.gz: 74a38f90d9bc088a3919b884d46ff594ece2d9f1b4ae746c94fdd65198915f927245ed3d8a220070259e87bd0f36ac945d6b1378b823535496b02ee7d554cade
7
- data.tar.gz: 2e865256acd306dcbb100687be16e826a6e9381c519a81925e0226684118cc129123124927ac91f5cbeb34e07facb25958789ebaac2acebd7cdb2561623fff9f
6
+ metadata.gz: 21f23471ac04698370c6b3a77a82d8a4be70a754ff4f5440ae91ee03a9d1e52c03b5b0bf0a54e7bd523fdb174ecc805158dd0a013ad88bfa1c3945cc2b973c81
7
+ data.tar.gz: f90f0ae07f460358571b929ef2f831fdb640bbbcfda7c7ba9f6416e0d24ea303c8431e0cd193137d4228a626c0f74a7f09839f732db0289c092459e7c4c28ade
@@ -1,3 +1,7 @@
1
+ ## 1.10.0 (2019-12-18)
2
+
3
+ * [minimagick] Add `:loader` option for explicitly setting input file type (@janko)
4
+
1
5
  ## 1.9.3 (2019-08-11)
2
6
 
3
7
  * [vips] Use integer precision when sharpening for better quality (@metaskills)
@@ -25,7 +25,7 @@ module ImageProcessing
25
25
  # Initializes the image on disk into a MiniMagick::Tool object. Accepts
26
26
  # additional options related to loading the image (e.g. geometry).
27
27
  # Additionally auto-orients the image to be upright.
28
- def self.load_image(path_or_magick, page: nil, geometry: nil, auto_orient: true, **options)
28
+ def self.load_image(path_or_magick, loader: nil, page: nil, geometry: nil, auto_orient: true, **options)
29
29
  if path_or_magick.is_a?(::MiniMagick::Tool)
30
30
  magick = path_or_magick
31
31
  else
@@ -34,11 +34,12 @@ module ImageProcessing
34
34
 
35
35
  Utils.apply_options(magick, options)
36
36
 
37
- input_path = source_path
38
- input_path += "[#{page}]" if page
39
- input_path += "[#{geometry}]" if geometry
37
+ input = source_path
38
+ input = "#{loader}:#{input}" if loader
39
+ input += "[#{page}]" if page
40
+ input += "[#{geometry}]" if geometry
40
41
 
41
- magick << input_path
42
+ magick << input
42
43
  end
43
44
 
44
45
  magick.auto_orient if auto_orient
@@ -1,3 +1,3 @@
1
1
  module ImageProcessing
2
- VERSION = "1.9.3"
2
+ VERSION = "1.10.0"
3
3
  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.9.3
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Janko Marohnić
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-11 00:00:00.000000000 Z
11
+ date: 2019-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mini_magick
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.0.3
161
+ rubygems_version: 3.1.1
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Set of higher-level helper methods for image processing.