Re: croping an image with GD and putting it into html code
| From: | Richard Lynch | Date: | Tue, 15 Mar 2005 16:16:33 +0000 |
| Subject: | Re: croping an image with GD and putting it into html code | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210817@lists.php.net to get a copy of this message | ||
> This function will return only the raw data for the new thumbnail
> image. Is there a way to output the thumbnail image directly to a <img>
> tag in my html file?
You *can* do that, but it's such a bad idea, I don't even remember how...
And not all browsers support it anyway.
> Is there a way to do this without storing the
> thumbnail into a tmp file?
Sort of.
Just put your script in thumbnail.php and do like this:
<img src=thumbnail.php?img_src=filename.jpg>
You'll need to add a line to actually call the thumb($img_src) or take out
the function stuff.
--
Like Music?
http://l-i-e.com/artists.htm