image_processing 0.4.3 → 0.4.4
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/README.md +1 -1
- data/lib/image_processing/mini_magick.rb +1 -1
- data/lib/image_processing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 927332d5b22f765abe5bfe4197032d846f4cf12c
|
4
|
+
data.tar.gz: b7ba8c46f72d3ecf0c673d890b5ceb42bbe3fb92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b9739bd6b0a9458ef85c00f35822d9621d7c08cc1e63d0df7fa4064ca22ba21dde56fa62ba1a6344b1b0e5e0857349b7fd35a0565ea4f86c1ec0b41bf8d45c2
|
7
|
+
data.tar.gz: a5fb004adc2939892dee145059376c4f55197e6a22e31ba4e817791b7fecfdc884d77449c3260b5759fc1ff3b0b2b703bb6c010715f8a6c403cb1e376875b756
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ that they can be used in any project. The goal of image_processing is to have a
|
|
8
8
|
centralized place where helper methods for image processing are maintained,
|
9
9
|
instead of CarrierWave, Dragonfly and Refile each implementing their own.
|
10
10
|
|
11
|
-
It's been tested with MRI 2.x
|
11
|
+
It's been tested with MRI 2.x and JRuby.
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
@@ -227,7 +227,7 @@ module ImageProcessing
|
|
227
227
|
# IO object that responds to `#read(length = nil, outbuf = nil)`.
|
228
228
|
def _copy_to_tempfile(file)
|
229
229
|
extension = File.extname(file.path) if file.respond_to?(:path)
|
230
|
-
tempfile = Tempfile.new(["mini_magick",
|
230
|
+
tempfile = Tempfile.new(["mini_magick", extension.to_s], binmode: true)
|
231
231
|
IO.copy_stream(file, tempfile.path)
|
232
232
|
file.rewind
|
233
233
|
tempfile
|