I was up to speed with PHP a few years ago but got sidetracked. I a now getting back into it but am quite rusty so some help would be greatly appreciated.
Right, here is my problem:
The web hosting i use has apparently got Imagemagick installed. The most information i can get from them is that “We do support imagemagick and it is installed already on the server. The path is /usr/bin/convert.” They then i could try “/usr/bin”.
When i try to run the following script:
<?php $image = new imagick( "image/service/consult.jpg" ); $points = array( 0,0, 25,25, # top left 176,0, 126,0, # top right 0,135, 0,105, # bottom right 176,135, 176,135 # bottum left ); $image->setimagebackgroundcolor("#fad888"); $image->setImageVirtualPixelMethod( imagick::VIRTUALPIXELMETHOD_BACKGROUND ); $image->distortImage( Imagick::DISTORTION_PERSPECTIVE, $points, TRUE ); header( "Content-Type: image/jpeg" ); echo $image; ?>I get this error:
Fatal error: Class ‘imagick’ not found in /home/design/public_html/script/image/manipulate.php on line 11
Can anyone tell me how i can make use of the information “The path is /usr/bin/convert”?
If you want i can create a testing domain for you so you can try it out directly.
Thanks in advance for any help