Commit 73d40d16 by Alex Tambellini Committed by Jon Yurek

Use :swallow_stderr instead of not thread safe silence_stream(STDERR)

parent 80f9b309
......@@ -14,9 +14,14 @@ module Paperclip
def geometry_string
begin
silence_stream(STDERR) do
Paperclip.run("identify", "-format '%wx%h,%[exif:orientation]' :file", :file => "#{path}[0]")
end
Paperclip.run(
"identify",
"-format '%wx%h,%[exif:orientation]' :file", {
:file => "#{path}[0]"
}, {
:swallow_stderr => true
}
)
rescue Cocaine::ExitStatusError
""
rescue Cocaine::CommandNotFoundError => e
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment