[magick-users] PHP/Imagick/Ubuntu7.02 Problem:

Prasad Burra burrashiva at gmail.com
Thu Aug 30 14:10:06 PDT 2007


Dear all,

I am trying to use PHP-Imagick combination. Just started, so it is a
newbie question.

I installed php-imagick using apt-get install php-imagick

I copied the example script:
***********************************
<?php
header('Content-type: image/jpeg');
$image = new Imagick('image.jpg');
$image->thumbnailImage(100, 0);
echo $image;
?>
***************************************

Provided the 'image.jpg' file.
When I run this script: I am getting following error:
*****************************************************************
Warning: Cannot modify header information - headers already sent by
(output started at /var/www/imagic.php:5) in /var/www/imagic.php on
line 6

Fatal error: Class 'Imagick' not found in /var/www/imagic.php on line 7
******************************************************************************

What is that I am missing in the configuration / installation of
imagick with php.
could some body help me.
thank you,
Prasad.


More information about the Magick-users mailing list