diff options
-rw-r--r-- | lib/redmine/helpers/gantt.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index dcddcca2a..1223c0fe0 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -379,6 +379,9 @@ module Redmine unless Redmine::Configuration['rmagick_font_path'].nil? font_path = Redmine::Configuration['minimagick_font_path'].presence || Redmine::Configuration['rmagick_font_path'].presence img = MiniMagick::Image.create(".#{format}", false) + if Redmine::Configuration['imagemagick_convert_command'].present? + MiniMagick.cli_path = File.dirname(Redmine::Configuration['imagemagick_convert_command']) + end MiniMagick::Tool::Convert.new do |gc| gc.size('%dx%d' % [subject_width + g_width + 1, height]) gc.xc('white') |