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??
Related
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.
I am installing ImageMagick on my server and upon entering the following config command:
./configure --enable-hdri
I get an output for the configuration that shows:
--enable-hdri=yes yes
But, when I try:
identify -version
Am am given:
Version: ImageMagick 6.6.0-4 2010-11-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
With HDRI missing from the Features section.
Anyone know what gives? Thanks!
You should run
which identify
to see where your called identify binary is located:
Is this really the one you have compiled and installed?
Or is it rather another one (which pre-dates your own build and which wasn't cleanly removed)?
You may be able to 'fix' this by tweaking your $PATH variable, or by calling the identify you really want with its full path...
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).
I'm getting an error trying to sign a dll in F# on mono:
$ mono /usr/local/share/FSharp-2.0.0.0/bin/fsc.exe\
--target:library \
--keyfile:../../external/MyKeyFile.snk\
AssemblyInfo.fs\
../../fs/FooBar.fs\
-o:FooBar.dll
No dll is generated, and I get this error back:
Microsoft (R) F# 2.0 Compiler build 2.0.0.0 Copyright (c) Microsoft Corporation. All Rights Reserved.`
error FS2014: A problem occurred writing the binary '': A call to StrongNameGetPublicKey failed (mscoree.dll)`
The keyfile was generated in Windows, does that make any difference?
Update:
Using Mono 2.6.4
$ mono --version
Mono JIT compiler version 2.6.4 (tarball Mon Jun 21 19:26:21 UTC 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC and Parallel Mark)
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
It looks like fsc is P/Invoking native Windows API, which is not portable. You should probably raise the issue with the F# team.
Try using sn to sign after you generate the assembly.
To do this you first need to compile with the --delaysign flag to produce a delay signed assembly.
You can then use the sn utility with the -R flag to sign the assembly afterward.
I'm not 100% sure this will work as I don't have a Linux or Mac machine around to test it on. It's worth a shot though.
I'm having a problem with phpThumb. It says in the documentation that to get the best out of it, use ImageMagick / Imagick.
I've got this installed on the Server (running Centos 5.1), and can run convert --version and get the right info back. I can also run which convert which returns /usr/bin/convert
However, phpThumb can't location the convert program - the demo's show that:
(requires ImageMagick, this server is running "n/a" so it will not work)
Does anyone have any pointers on how to fix this?
Cheers,
Matt
ImageMagick changed the way it reports the version, and phpThumb no longer recognizes the version info.
From:
Version: ImageMagick 6.3.7 06/04/09
Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008
ImageMagick Studio LLC
To:
Version: ImageMagick 6.6.2-6
2010-12-02 Q16
http://www.imagemagick.org Copyright:
Copyright (C) 1999-2010 ImageMagick
Studio LLC
There are now DASHES in the version! This is a simple fix, open phpthumb.class.php
look for the line:
if (eregi('^Version: [^0-9]*([ 0-9\\.\\:Q/]+) (http|file)\:', $versionstring[1], $matches)) {
Simply add a dash '-' after the Q/ and it will work. New line:
if (eregi('^Version: [^0-9]*([ 0-9\\.\\:Q/-] (http|file)\:', $versionstring[1], $matches)) {
Have you checked phpinfo() to make sure imagick is installed? If not, you will need to install it.
ImageMagick Install Instructions
The problem with phpThumb is often not a missing ImageMagick problem, but a problem with access to the exec function, because phpThumb is using binaries (convert) to create thumbnails. Make sure You have seen this http://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=phpThumb and http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-1598