Rails - Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed - ruby-on-rails

So I have image uploading to google cloud storage working fine with carrierwave. Now I want to have all images converted to .png using minimagick. I added the mini_magic gem and tested it out on my mac and it works fine. When I deployed the changes and tested it in production I get the error:
Value Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed
I'm using a Google Cloud Publisher VM on the flexible environment. So I connected it via SSH and ran sudo apt-get install imagemagick. It finished and it looks like imagemagick installed successfully.
root#cs-6908-devshell-vm-5a72c8c9-d84d-4072-a5ba-29d989ab6282-131:/home/user# convert -version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2016-06-01 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib
Problem is that I still get the same error. I've seen this problem in other questions but there were for mac and windows.

Related

imagemagick php HEIC

I have an ubuntu 2.0 with NGINX and imagemagick 7 running, I was able to get HEIC support in imagemagick and can convert an HEIC file at the prompt, but php still throws an error imagemagick can not support HEIC files. Any ideas?
I ended up re-installing PHP ImageMagick extension with PECL and it worked

How to get Imagemagick to use littlecms2 on WHM Centos 7

I have Imagemagick running fine. However it is missing the lcms2 library that lets it utilise icc color profiles.So it was installed via RPM and also with for different versions of PHP with the PECL php wrapper. I have installed lcms2 also from RPM.
However imagemagick doesn't know anything about lcms2.
How can I add lcms2 delegate/library to my current imagemagick install?
Do I have to make my own build of imagemagick with flags to include lcms2? I hear lcms was removed from the Centos Imagemagick RPM due to security concerns.

ImageMagick Opencl version

I installed ImageMagick OpenCL as per the instructions in https://serverfault.com/questions/734854/why-is-imagemagick-with-opencl-slower-than-openmp
But when i check whether version of ImageMagick includes support for the OpenCL feature using
$ identify -version
It shows
Version: ImageMagick 6.7.7-10 2014-03-06 Q16
http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
But it has to show the features as
Features: DPC Cipher Modules OpenCL OpenMP
What else i am missing?? Is there any other steps i ve left out??

fftw3 delegate for ImageMagick

I installed fftw3 package for Ubuntu 11.10, then installed ImageMagick. While performing fft of images, i get following error
convert: delegate library support not built-in `framed_clown.jpg' (FFTW) # warning/fourier.c/ForwardFourierTransformImage/611.
there was no fftw delegate listed on
convert -list configure
how can i resolve this ??
I believe that uninstalling imagemagick, installing fftw and reinstalling IM afterwards should solve the problem.
For Windows users there are these precompiled binaries - http://blog.astrophotographytargets.com/2012/03/imagemagick-with-fftw-delegate-library-on-windows/

identify and convert have different ImageMagick versions

I am using Carrierwave for photo upload but the image resizing function doesn't work properly. So I spent about 6 hours trying to figure it our on google. I tried uninstalling and installing ImageMagick as it seems to be the root of the problem. This did not help. So I then checked the versions of "identify" and "convert" which are presumably two utilities that come with ImageMagick. They report different ImageMagick version number, as pasted below:
63c55b$ convert --version
Version: ImageMagick 6.7.3-2 2011-10-23 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
63c55b$ identify --version
Version: ImageMagick 6.6.2-6 2011-03-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
This is right after I installed ImageMagick from source using make install. I don't know how to upgrade the version for identify to match that of convert. Help is greatly appreciated!
Run these commands to find out the installation locations of your convert and identify binaries (I'm assuming you're on Linux or Mac OS X):
which convert
which identify
Should the directory for convert be different from that of identify: have a look if there is another identify in the same directory as convert.
If that doesn't help, try these commands to List the Dynamic Dependencies for each of the binaries:
ldd `which convert`
ldd `which identify`
(Dynamic dependencies are those libs that another lib or executable requires to load at runtime so it can run at all...) One of the two may be 'statically linked' (and hence list no dynamic dependencies at all).

Resources