Re: nead some examples

From: Date: Fri, 23 May 2003 09:28:57 +0000
Subject: Re: nead some examples
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148748@lists.php.net to get a copy of this message
On Friday 23 May 2003 17:51, Marius wrote: > can someone give me a simple example for copyimageresized(); ? No. But here's an example for imagecopyresized(): $scale = 2; $in_file = './doo.jpg'; $out_file = './dah.jpg'; $img_info = getimagesize($in_file); $rsc_in_image = imagecreatefromjpeg($in_file); $rsc_out_image = imagecreatetruecolor($scale * $img_info[0], $scale * $img_info[1]); imagecopyresized($rsc_out_image, $rsc_in_image, 0, 0, 0, 0, $img_info[0] * $scale, $img_info[1] * $scale, $img_info[0], $img_info[1]); imagejpeg($rsc_out_image, $out_file); -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* I smell a wumpus. */

« previous php.general (#148748) next »