Defect #37584

Gantt PNG export fails (MiniMagick error)

Added by Oana VIGY about 1 month ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:5.0.2


Dear All,

I encounter a problem while exporting Gantt chart in PNG MiniMagick::Error (You must have ImageMagick or GraphicsMagick installed): as already reported in #35424.

I tried the fix proposed by Jan without success.

We just upgraded to Redmine 5.0.2 (from 4.2.2) with Ruby 3.0 (I don't remember if it worked earlier).

If someone have an idea. Thanks.

Best regards,


Production log:

I, [2022-08-17T16:10:49.664599 #93460]  INFO -- : [367292a9-e17e-4a86-a18d-13976de5d954] Started GET "/projects/qualite/issues/gantt.png?month=8&months=6&year=2022&zoom=2" for at 2022-08-17 16:10:49 +0200
I, [2022-08-17T16:10:49.666126 #93460]  INFO -- : [367292a9-e17e-4a86-a18d-13976de5d954] Processing by GanttsController#show as PNG
I, [2022-08-17T16:10:49.666212 #93460]  INFO -- : [367292a9-e17e-4a86-a18d-13976de5d954]   Parameters: {"month"=>"8", "months"=>"6", "year"=>"2022", "zoom"=>"2", "project_id"=>"qualite"}
I, [2022-08-17T16:10:49.673618 #93460]  INFO -- : [367292a9-e17e-4a86-a18d-13976de5d954]   Current user: adminPPM (id=50)
I, [2022-08-17T16:10:49.734119 #93460]  INFO -- : [367292a9-e17e-4a86-a18d-13976de5d954] Completed 500 Internal Server Error in 68ms (ActiveRecord: 31.5ms | Allocations: 17710)
F, [2022-08-17T16:10:49.734835 #93460] FATAL -- : [367292a9-e17e-4a86-a18d-13976de5d954]
[367292a9-e17e-4a86-a18d-13976de5d954] MiniMagick::Error (You must have ImageMagick or GraphicsMagick installed):
[367292a9-e17e-4a86-a18d-13976de5d954] lib/redmine/helpers/gantt.rb:401:in `to_image'
[367292a9-e17e-4a86-a18d-13976de5d954] app/controllers/gantts_controller.rb:46:in `block (2 levels) in show'
[367292a9-e17e-4a86-a18d-13976de5d954] app/controllers/gantts_controller.rb:42:in `show'
[367292a9-e17e-4a86-a18d-13976de5d954] lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Redmine information

  Redmine version                5.0.2.stable
  Ruby version                   3.0.4-p208 (2022-04-12) [amd64-freebsd13]
  Rails version                  6.1.6
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Default
  Git                            2.37.1
Redmine plugins:
  no plugin installed
MiniMagick and ImageMagick
  • MiniMagick available : mini_magick (4.11.0)
  • ImageMagick
    • Version7.1.0-34 Q16-HDRI
    • Path defined in "configuration.yml": imagemagick_convert_command: /usr/local/bin/convert

Also available in: Atom PDF