Defect #40832 ยป use-magick-command-for-imagemagick7.patch
| w/lib/redmine/thumbnail.rb | ||
|---|---|---|
|
module Thumbnail
|
||
|
extend Redmine::Utils::Shell
|
||
|
CONVERT_BIN = (Redmine::Configuration['imagemagick_convert_command'] || 'convert').freeze
|
||
|
CONVERT_BIN = (
|
||
|
Redmine::Configuration['imagemagick_convert_command'] ||
|
||
|
begin
|
||
|
`magick --version`
|
||
|
$?.success? ? 'magick' : 'convert'
|
||
|
rescue
|
||
|
'convert'
|
||
|
end
|
||
|
).freeze
|
||
|
GS_BIN = (
|
||
|
Redmine::Configuration['gs_command'] ||
|
||
|
('gswin64c' if Redmine::Platform.mswin?) ||
|
||