PEAR_Image_Transform

From: Date: Sun, 25 May 2003 09:28:18 +0000
Subject: PEAR_Image_Transform
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5590@lists.php.net to get a copy of this message
Hi, i have test this under Windows and Linux <?php $os = "win"; switch ( $os ) { case "linux": $path = "/path/to/test/"; define('IMAGE_TRANSFORM_LIB_PATH', '/usr/local/bin/'); break; case "win": $path = "C:/webroot/PEAR_Image_Transform/"; define('IMAGE_TRANSFORM_LIB_PATH', 'c:/ImageMagick/'); break; } error_reporting(E_ALL); require_once 'Image/Transform.php'; // Change 'IM' to 'GD' to test using the GD library. $im = Image_Transform::factory('IM'); $im->load($path.'test.jpg'); $new_x = 150; $new_y = $im->scaleMaxX( $new_x ); $im->resize($new_x, $new_y); #$im->rotate(90); $im->save($path.'new.jpg'); $im->free(); ?> <img src="test.jpg"> <hr> <img src="new.jpg"> Under linux run the script, but under windows not. Please help me. Thanks Georg

« previous php.pear.general (#5590) next »