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 #2354

save() should return TRUE/FALSE

Details

Request #2354save() should return TRUE/FALSE
Submitted2004-09-17 13:17 UTC
Frompowtac at gmx dot de
StatusBogus
PackageImage_Transform
PHP Version5.0.1
OSWin 2000
Roadmaps(Not assigned)

Comments

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

Description:
------------
It would be nice it the save()-function of Image_Transform_Driver_GD and Image_Transform_Driver_Imagick and ... returns bool(TRUE) on success and bool(FLASE) for fails.

Reproduce code:
---------------
require_once("Image/Transform.php");

$Pic=&Image_Transform::factory("GD");
$Pic->load('normal.jpg');
$Pic->scaleByLength(100);

vardump($Pic->save('test.jpg'));

Expected result:
----------------
TRUE / FALSE

Actual result:
--------------
NULL

[2004-09-17 13:19 UTC] powtac at gmx dot de

Last line in "Reproduce code" should be:

var_dump($Pic->save('test.jpg'));