Search code examples
rubywindowsimagemagickruby-on-rails-5minimagick

Getting error, ImageMagick/GraphicsMagick is not installed. windows


I am trying to use ImageMagick to manipulate photos in my rails app but when I upload the photo and post it I get this error,

"Picture Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed"

Also when I try do,

irb
require 'mini_magick'
filename = '/Users/me/tmp/testfile.jpg'
image = MiniMagick::Image.open(filename)

it gives error "gives error...MiniMagick::Invalid: ImageMagick/GraphicsMagick is not installed"

ImageMagick is added to the system path, and installed successfully, I can open imagemagick through the cmd line and bring up the interface, wondering if anyone can offer some help.

correct versions are installed of ImageMagick for my operating system.

Also vcomp120.dll is installed as well.

EDIT: This is just on the development sever, not, in production.


Solution

  • To answer, my own question, on the ImageMagick website binaries download section, windows x64 I used and there it has a list of three commands

    magick logo: "logo.gif"
    magick identify "logo.gif"
    magick display "logo.gif"
    

    I was getting error display: delegate library support not built-in '' (X11) @ error/display.c/DisplayImageCommand/1888. with this. I then installed GraphicsMagick as per @Bonzo comment. Still had problems and read that alot of people were having trouble with converting images and installing the legacy utilities in the windows installer corrected this adding, convert.exe, mogrify, etc. I was then getting a error ...Wrong JPEG library version: library is 90, caller expects 62... I then searched and found that other peoples were having trouble with this error, and to remove the program that is having the conflicting "libjpeg" file, for me this was GraphicsMagic, I uninstalled and displaying images is fine now.

    Also check your delegates configuration magick convert -list configure and make sure jpeg or whatever format is in there you are wanting to use.