PNG export in GANTT throws error: You must have ImageMagick or GraphicsMagick installed

Added by Jan Catrysse about 1 year ago

PNG export of GANTT chart throws an error: You must have ImageMagick or GraphicsMagick installed.

Error message


  Redmine version                4.2.1.stable
  Ruby version                   2.7.3-p183 (2021-04-05) [amd64-freebsd12]
  Rails version                  5.2.6
  Environment                    development
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                sendmail

Redmine checks:

  Default administrator account changed: ok
  Attachments directory writable: ok
  Plugin assets directory writable (./public/plugin_assets): ok
  MiniMagick available (optional): ok
  ImageMagick convert available (optional): ok
  ImageMagick PDF support available (optional): ok


  FreeBSD 13.0 in AMD64


  ImageMagick7- installed
  rubygem-mini_magick-4.10.1: installed

Configuration.yml: (relevant part / leading whitespace = two spaces)

  rmagick_font_path: /usr/local/share/fonts/dejavu/DejaVuSans.ttf
  imagemagick_convert_command: /usr/local/bin/convert

I cannot seem to use MiniMagick to export the PNG, but I have Image Magick installed, and the convert executable is working on command line.
I tried this patch #35027 but without change.

Somehow I think that MiniMagick::Tool::Convert is not using or finding the correct path to /usr/local/bin/convert.

I made a link to /usr/bin/convert: no success.
I tried running convert as user www: works fine on command line.

Help would be appreciated.
Best regards,

error.jpg - Error message (51.4 KB)