Project

General

Profile

Defect #40832 ยป use-magick-command-for-imagemagick7.patch

[Agileware]Shun(ji) Nishitani, 2025-12-19 12:12

View differences:

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?) ||
    (1-1/1)