Pretty Simple, why no worky?

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
rladd

Pretty Simple, why no worky?

Post by rladd »

This code was working on my old Win box, but doesn't seem to go on CentOS.
I must've done something stupid. Can anyone help?

Code: Select all

	$magick_wand = NewMagickWand();
	MagickReadImage($magick_wand, 'image.jpg');
	header('Content-Type: image/gif');
	MagickEchoImageBlob($magick_wand);
Script outputs nothing; no errors, nada.
Thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Pretty Simple, why no worky?

Post by magick »

Is MagickWand for PHP installed on your CentOS system? We just tried your script and it worked without complaint.
coolcatco888

Re: Pretty Simple, why no worky?

Post by coolcatco888 »

to verify that this is installed create a page with:

Code: Select all

<?php phpinfo(); ?>
Open that page and do a search for imagemagick in Firefox or whatever you use. If it is not there, it is not installed properly.
Post Reply