mirror of
https://github.com/redmine/redmine.git
synced 2026-07-13 10:02:22 +02:00
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
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user