From 92c7a4d53a9df47691703c1bea1755b95dbbb534 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 20 Feb 2022 20:16:58 +0000 Subject: [PATCH] Merged r21427 to 4.2-stable (#35027). git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21428 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/helpers/gantt.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/redmine/helpers/gantt.rb b/lib/redmine/helpers/gantt.rb index 2bce1db1b..532c06150 100644 --- a/lib/redmine/helpers/gantt.rb +++ b/lib/redmine/helpers/gantt.rb @@ -396,6 +396,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') -- 2.39.5