Project

General

Profile

Defect #31125 ยป stop-output-imagemagick-banner-to-stdout.patch

Go MAEDA, 2019-03-31 09:27

View differences:

lib/redmine/thumbnail.rb
def self.convert_available?
return @convert_available if defined?(@convert_available)
@convert_available = system("#{shell_quote CONVERT_BIN} -version") rescue false
begin
`#{shell_quote CONVERT_BIN} -version`
@convert_available = $?.success?
rescue
@convert_available = false
end
logger.warn("Imagemagick's convert binary (#{CONVERT_BIN}) not available") unless @convert_available
@convert_available
end
    (1-1/1)