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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/image_processing/mini_magick.rb +6 -5
- data/lib/image_processing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e15f100c14c6b60a0107e1d3b2f6ff41e2890f9ecd1fb3f73ae4838249650746
|
4
|
+
data.tar.gz: 2a8c07a6891465aebb7d172354780a5cba8d75933c4c7354d7b68acf8c6b321f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21f23471ac04698370c6b3a77a82d8a4be70a754ff4f5440ae91ee03a9d1e52c03b5b0bf0a54e7bd523fdb174ecc805158dd0a013ad88bfa1c3945cc2b973c81
|
7
|
+
data.tar.gz: f90f0ae07f460358571b929ef2f831fdb640bbbcfda7c7ba9f6416e0d24ea303c8431e0cd193137d4228a626c0f74a7f09839f732db0289c092459e7c4c28ade
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
38
|
-
|
39
|
-
|
37
|
+
input = source_path
|
38
|
+
input = "#{loader}:#{input}" if loader
|
39
|
+
input += "[#{page}]" if page
|
40
|
+
input += "[#{geometry}]" if geometry
|
40
41
|
|
41
|
-
magick <<
|
42
|
+
magick << input
|
42
43
|
end
|
43
44
|
|
44
45
|
magick.auto_orient if auto_orient
|
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.
|
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-
|
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.
|
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.
|