Re: [PHP] imagecopyresample

2005-04-14 Thread gareth
On Apr 14, 2005, at 21:37, Marek Kilimajer wrote: [EMAIL PROTECTED] wrote: I have created (adapted) the follow function: function imageresize($new_width, $new_height, $filename) { // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) = getimagesize($filenam

Re: [PHP] imagecopyresample

2005-04-14 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I have created (adapted) the follow function: function imageresize($new_width, $new_height, $filename) { // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) = getimagesize($filename); // Resample $image_p = imagecreatetruecolor($n

Re: [PHP] imagecopyresample

2005-04-14 Thread gareth
On Apr 14, 2005, at 14:46, Kim Madsen wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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'; d

RE: [PHP] imagecopyresample

2005-04-14 Thread Kim Madsen
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > 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 befor

[PHP] imagecopyresample

2005-04-14 Thread gareth
I have created (adapted) the follow function: function imageresize($new_width, $new_height, $filename) { // Content type header('Content-type: image/jpeg'); // Get new dimensions list($width, $height) = getimagesize($filename); // Resample $image_p = imagecreatetruecolor($new_width, $new_height); $