Page 1 of 1

Strange error with php56-imagick on MacOS

Posted: 2015-10-28T08:01:40-07:00
by bezdoom
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!

Re: Strange error with php56-imagick on MacOS

Posted: 2015-10-28T09:29:02-07:00
by fmw42
$imagick = new \Imagick();
I am not an IMagick expert, but I do not think there should be a \ in that command.

Re: Strange error with php56-imagick on MacOS

Posted: 2015-10-29T02:11:57-07:00
by bezdoom
fmw42 wrote:
$imagick = new \Imagick();
I am not an IMagick expert, but I do not think there should be a \ in that command.
\ mean the root namespace.

Re: Strange error with php56-imagick on MacOS

Posted: 2015-10-29T14:30:35-07:00
by fmw42
I believe the syntax is more like

Code: Select all

$img = new imagick('/Users/vkulikov/Downloads/1444827520-120x60.gif');
There should be no \

Re: Strange error with php56-imagick on MacOS

Posted: 2015-10-29T15:20:04-07:00
by Bonzo
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.

Re: Strange error with php56-imagick on MacOS

Posted: 2015-10-30T01:28:21-07:00
by bezdoom
Guys, problem not in \.

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

Posted: 2015-10-30T02:50:26-07:00
by dlemstra
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

Posted: 2015-10-30T05:52:49-07:00
by bezdoom
dlemstra wrote:It looks like you are using different versions of ImageMagick at the same time. Did you install multiple versions of ImageMagick?
i've installed imagick with homebrew

Code: Select all

$ brew install imagemagick
How can i check this case?

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

Re: Strange error with php56-imagick on MacOS

Posted: 2015-10-30T09:51:17-07:00
by fmw42
try

type -a convert

or

which -a convert

Re: Strange error with php56-imagick on MacOS

Posted: 2015-10-30T12:43:11-07:00
by bezdoom
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