Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.5

Request #2354 save() should return TRUE/FALSE
Submitted: 2004-09-17 13:17 UTC
From: powtac at gmx dot de Assigned:
Status: Bogus Package: Image_Transform
PHP Version: 5.0.1 OS: Win 2000
Roadmaps: (Not assigned)    

 [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'));
 [2004-09-20 14:31 UTC] jausions
Thank you for taking the time to report a problem with the package. Unfortunately you are not using a current version of the package -- the problem might already be fixed. Please download a new version from If you are able to reproduce the bug with one of the latest versions, please change the package version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PEAR. The proper returned values are either TRUE or a PEAR_Error object.