Re: imagecopyresample
| From: | gareth at zaphodmcmillan dot com | Date: | Thu, 14 Apr 2005 14:15:57 +0000 |
| Subject: | Re: imagecopyresample | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213088@lists.php.net to get a copy of this message | ||
On Apr 14, 2005, at 14:46, Kim Madsen wrote:
If so. I removed the header. And changed the output. The problem now is that it displays it as code (becuase there is no header) it also manages to display it without the print comment Gareth --------------------------------------------------------------------------------------------- check out my blog to find out what im up to: http://www.zaphodmcmillan.com/ --------------------------------------------------------------------------------------------- check out my blog to find out what im up to: http://www.zaphodmcmillan.com/ And my new email is gareth@zaphodmcmillan.comFrom: gareth@zaphodmcmillan.com [mailto:gareth@zaphodmcmillan.com] Sent: Thursday, April 14, 2005 3:04 PMI 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\">"; Thanks for the help. But outcomment the header do you mean remove it?