PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Images » Image_Transform » Bug #2353

No Feedback about not installed GD

Details

Request #2353No Feedback about not installed GD
Submitted2004-09-17 11:30 UTC
Frompowtac at gmx dot de
StatusClosed
PackageImage_Transform
PHP Version5.0.1
OSWIN 2000
Roadmaps(Not assigned)

Comments

[2004-09-17 11:30 UTC] powtac at gmx dot de

Description:
------------
When I used an example of code to get a sample of a pic, I didn't recived an error or feedback that I havn't installed the GD-libary!

Reproduce code:
---------------
require_once 'Image/Transform/Driver/GD.php';
$img = new Image_Transform_GD();
$angle = -78;
$img->load('logo.jpg');

if($img->rotate($angle,array('autoresize'=>true,'color_mask'=>array(255,0,0)))){
$img->addText(array('text'=>"Rotation $angle",'x'=>0,'y'=>100,'font'=>'/usr/share/fonts/default/TrueType/cogb____.ttf'));
$img->display();
} else {
echo "Error";
}

Expected result:
----------------
Error msg or Feedback about not installed GD-libary OR A rotated pic.

Actual result:
--------------
Fatal error: Call to undefined function ImageCreateFromjpeg() in C:\php\PEAR\Image\Transform\Driver\GD.php on line 80