diff options
Diffstat (limited to 'lib/redmine')
-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 992e28780..c0ff7a250 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -395,6 +395,9 @@ module Redmine 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') |