Strange error with php56-imagick on MacOS
Strange error with php56-imagick on MacOS
Hey guys!
I have strange problem with IMagick on my mac.
Detail of this problem here
http://stackoverflow.com/questions/3337 ... 56-imagick
Please help!
I have strange problem with IMagick on my mac.
Detail of this problem here
http://stackoverflow.com/questions/3337 ... 56-imagick
Please help!
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Strange error with php56-imagick on MacOS
I am not an IMagick expert, but I do not think there should be a \ in that command.$imagick = new \Imagick();
Re: Strange error with php56-imagick on MacOS
\ mean the root namespace.fmw42 wrote:I am not an IMagick expert, but I do not think there should be a \ in that command.$imagick = new \Imagick();
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Strange error with php56-imagick on MacOS
I believe the syntax is more like
There should be no \
Code: Select all
$img = new imagick('/Users/vkulikov/Downloads/1444827520-120x60.gif');
Re: Strange error with php56-imagick on MacOS
Removing the \ from the front of imagick sounds right to me fmw42.
You are also calling your file from outside your local host. I would either try reading an image from the web or reading one from the same folder that run.php is in.
You are also calling your file from outside your local host. I would either try reading an image from the web or reading one from the same folder that run.php is in.
Re: Strange error with php56-imagick on MacOS
Guys, problem not in \.
Problem somewhere in C++ plugin MagickWand
Problem somewhere in C++ plugin MagickWand
Code: Select all
$ php run.php
Assertion failed: (wand->signature == WandSignature), function MagickClearException, file wand/magick-wand.c, line 246.
Magick: abort due to signal 6 (SIGABRT) "Abort"...
Abort trap: 6
Re: Strange error with php56-imagick on MacOS
It looks like you are using different versions of ImageMagick at the same time. Did you install multiple versions of ImageMagick?
Re: Strange error with php56-imagick on MacOS
i've installed imagick with homebrewdlemstra wrote:It looks like you are using different versions of ImageMagick at the same time. Did you install multiple versions of ImageMagick?
Code: Select all
$ brew install imagemagick
My current versions
Code: Select all
$ identify -version
Version: ImageMagick 6.9.2-4 Q16 x86_64 2015-10-11 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
Code: Select all
$ php -i | grep imagick
imagick
imagick module => enabled
imagick module version => 3.1.2
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Strange error with php56-imagick on MacOS
try
type -a convert
or
which -a convert
type -a convert
or
which -a convert
Re: Strange error with php56-imagick on MacOS
fmw42 wrote:try
type -a convert
or
which -a convert
Code: Select all
$ type -a convert
convert is /usr/local/bin/convert
Code: Select all
$ which -a convert
/usr/local/bin/convert