Re: croping an image with GD and putting it into html code

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

 



> 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

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