note 32570 deleted from function.imagerotate by aidan

From: Date: Mon, 04 Oct 2004 06:55:11 +0000
Subject: note 32570 deleted from function.imagerotate by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77879@lists.php.net to get a copy of this message
Note Submitter: nberry at scurvy dot net ---- Just to save people like me some time, here's an example: <? Header("Content-type: image/jpeg"); $filename = "/tmp/" . $img_name; $img_size = GetImageSize($filename); $x = $img_size[0]; $y = $img_size[1]; $src_img = ImageCreateFromJpeg($filename); $dst_img = ImageCreateTrueColor($width,$height); ImageCopyResized($dst_img,$src_img,0,0,0,0,$x,$y,$x,$y); $degrees = "180"; $rotated_img = ImageRotate($dst_img,$degrees,0); ImageJpeg($rotated_img); ?>

« previous php.notes (#77879) next »