Home>

As you can see in the title, I'm getting an error that the uploaded image is not displayed when running the Rails app.
When I followed the log, I found the following error even though I installed ImageMagick in EC2, so I don't know the solution.

E, [2020-10-18T00: 57: 13.793624 # 2806] ERROR-: [90081fe6-67b0-4ffd-b688-8f1afeb8cf79] Refile :: App: Error->You must have ImageMagick or GraphicsMagick installed
ImageMagick version

The version of ImageMagick on EC2 is as follows.

$convert --version
Version: ImageMagick 7.0.10-34 Q16 x86_64 2020-10-18 https://imagemagick.org
Copyright: © 1999-2020 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): jng jpeg png tiff zlib
Gemfile (partial)
gem'refile', require:'refile/rails', github:'manfe/refile'
gem'refile-mini_magick'
Operating environment

AWS: EC2/RDS/S3
DB: MYSQL
Application server: Puma
web server: Nginx
SSL-enabled

  • Answer # 1

    It was cured when the version was changed to 6.7.8.9

  • Answer # 2

    Because the path doesn't pass.
    Or because you don't have permission to run it.

    Or the file is inaccessible and convert is giving an error.

    MiniMagick :: Image.open ("input.jpg")

    Why don't you try to open it?

Related articles