Re: imagecopyresample

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Apr 14, 2005, at 14:46, Kim Madsen wrote:

From: gareth@xxxxxxxxxxxxxxxxxx [mailto:gareth@xxxxxxxxxxxxxxxxxx]
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\">";


Thanks for the help.  But outcomment the header do you mean remove it?

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@xxxxxxxxxxxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux