Compare comand and docs
Posted: 2007-10-17T08:43:34-07:00
Hi,
I have been using ImageMagick from command line for some days... Now I want to do what I have tested in php using IMagick.
I have read that full documentation will be ready soon, but, for now, http://php.net/imagick documentation is really very very poor (especially for people like me that aren't php professionals), even I think that the only two examples shown are wrong (you have to use readimage()). so, when full doc will be aviable? Is any possible to access what is done for now?
In other way I need two compare groups of images, in command line I use "compare" command, I think that similar command in IMagick is compareImageChannels (http://www.php.net/manual/en/function.i ... annels.php) so I tried to use this with no results. I am doing somethning wrong for sure. Any help would be really appreciated:
I get:
Catchable fatal error: Argument 3 passed to Imagick::compareimagechannels() must be an instance of Imagick, integer given in /home/groo/compara2/informe.php on line 36
Thanks a Lot.
Groo.
I have been using ImageMagick from command line for some days... Now I want to do what I have tested in php using IMagick.
I have read that full documentation will be ready soon, but, for now, http://php.net/imagick documentation is really very very poor (especially for people like me that aren't php professionals), even I think that the only two examples shown are wrong (you have to use readimage()). so, when full doc will be aviable? Is any possible to access what is done for now?
In other way I need two compare groups of images, in command line I use "compare" command, I think that similar command in IMagick is compareImageChannels (http://www.php.net/manual/en/function.i ... annels.php) so I tried to use this with no results. I am doing somethning wrong for sure. Any help would be really appreciated:
Code: Select all
$im = new Imagick();
$im->readimage('image.jpg');
#Modified Image:
$im_ref = new Imagick();
$im_ref->readimage('image2.jpg');
$result = $im->compareImageChannels($im_ref,imagick::CHANNEL_ALL,imagick::METRIC_MEANABSOLUTEERROR);
var_dump($resultado);
Catchable fatal error: Argument 3 passed to Imagick::compareimagechannels() must be an instance of Imagick, integer given in /home/groo/compara2/informe.php on line 36
Thanks a Lot.
Groo.