Project

General

Profile

Patch #41312 » 0001-Update-MiniMagick-to-v5.0.1.patch

Katsuya HIDAKA, 2024-09-24 18:15

View differences:

Gemfile
# Optional gem for exporting the gantt to a PNG file
group :minimagick do
gem 'mini_magick', '~> 4.13.0'
gem 'mini_magick', '~> 5.0.1'
end
# Optional Markdown support
lib/redmine/helpers/gantt.rb
font_path =
Redmine::Configuration['minimagick_font_path'].presence ||
Redmine::Configuration['rmagick_font_path'].presence
img = MiniMagick::Image.create(".#{format}", false)
img = MiniMagick::Image.create(".#{format}")
if Redmine::Configuration['imagemagick_convert_command'].present?
MiniMagick.cli_path = File.dirname(Redmine::Configuration['imagemagick_convert_command'])
end
MiniMagick::Tool::Convert.new do |gc|
MiniMagick.convert do |gc|
gc.size('%dx%d' % [subject_width + g_width + 1, height])
gc.xc('white')
gc.font(font_path) if font_path.present?
(5-5/5)