image_processing 0.2.4 → 0.2.5
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/image_processing.gemspec +2 -2
- data/lib/image_processing/mini_magick.rb +3 -2
- data/lib/image_processing/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f50a933d3b59293412c8f598a646d4db0a756f6c
|
4
|
+
data.tar.gz: 778e9010cc777117535ad0b229f84e27a2d05ce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b5d7eabf7b3e3a9733dc16e55c8e11a7cf49657b08b4313d09ce2e9481f8bc1ee5b424b067e9f2976219876569b7d3bfb121def6a5d6ffb2c0a78201e4dc140
|
7
|
+
data.tar.gz: e51e778aff0a128b0bff398a4e79ec6cfc438091f7a3dee5c5afd927f41f1d55b721642ed113ebb9068b9deef6e756f0ec1ca944f55a9d2472d32726dc384e22
|
data/image_processing.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require File.expand_path('../lib/image_processing/version', __FILE__)
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "image_processing"
|
@@ -18,5 +18,5 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.add_development_dependency "minitest-hooks"
|
19
19
|
spec.add_development_dependency "minispec-metadata"
|
20
20
|
spec.add_development_dependency "mini_magick", ">= 4.3.5"
|
21
|
-
spec.add_development_dependency "phashion"
|
21
|
+
spec.add_development_dependency "phashion" unless RUBY_ENGINE == "jruby"
|
22
22
|
end
|
@@ -24,9 +24,9 @@ module ImageProcessing
|
|
24
24
|
# @param [String] format the format to convert to
|
25
25
|
# @yield [MiniMagick::Tool::Mogrify, MiniMagick::Tool::Convert]
|
26
26
|
# @return [File, Tempfile]
|
27
|
-
def convert!(image, format, &block)
|
27
|
+
def convert!(image, format, page = nil, &block)
|
28
28
|
with_minimagick(image) do |img|
|
29
|
-
img.format(format.downcase,
|
29
|
+
img.format(format.downcase, page, &block)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
nondestructive_alias :convert, :convert!
|
@@ -192,6 +192,7 @@ module ImageProcessing
|
|
192
192
|
args = [File.basename(file.path, ".*"), File.extname(file.path)] if file.respond_to?(:path)
|
193
193
|
tempfile = Tempfile.new(args || "image", binmode: true)
|
194
194
|
IO.copy_stream(file, tempfile.path)
|
195
|
+
file.rewind
|
195
196
|
tempfile
|
196
197
|
end
|
197
198
|
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: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Janko Marohnić
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.5.1
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Set of higher-level helper methods for image processing.
|