Selaa lähdekoodia

Fix gantt PNG export ignores imagemagick_convert_command (#35027).

Patch by Yuichi HARADA.


git-svn-id: http://svn.redmine.org/redmine/trunk@21427 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.0.0
Marius Balteanu 2 vuotta sitten
vanhempi
commit
1b09f5e4a3
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3
    0
      lib/redmine/helpers/gantt.rb

+ 3
- 0
lib/redmine/helpers/gantt.rb Näytä tiedosto

@@ -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')

Loading…
Peruuta
Tallenna