RE: [PHP] imagecopyresample

From: Date: Thu, 14 Apr 2005 13:46:56 +0000
Subject: RE: [PHP] imagecopyresample
Groups: php.general 
Request: Send a blank email to php-general+get-213080@lists.php.net to get a copy of this message
> From: gareth@zaphodmcmillan.com [mailto:gareth@zaphodmcmillan.com] > Sent: Thursday, April 14, 2005 3:04 PM > I get my image resized. (functions.php is where all my fuctions are > stored) However if I place anything after the imageresize it doesnt > show that. Eg echo"hello'; does nothing. If anything goes before it the > whole page doesnt work. > > Any ideas why this is happening and how I can work around it? Because You set the header to be an image: // Content type header('Content-type: image/jpeg'); I´m on my way out, so I don´t have the time to test on this but start by outcomment the header, return the value instead: // Output Return imagejpeg($image_p, null, 100); And call it like: $new_img = imageresize('100', '75', 'pages/1.jpg'); Print "<img src=\"$new_img\" alt=\"$new_img\">"; -- Med venlig hilsen / best regards ComX Networks A/S Kim Madsen Systemudvikler/Systemdeveloper

« previous php.general (#213080) next »