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

2005-03-15 Thread Richard Lynch
> 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 > 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

[PHP] croping an image with GD and putting it into html code

2005-03-15 Thread Frank Arensmeier
Hi! I ran into a little problem today and I would like to get some help. I create a thumbnail image with GD from a jpeg image stored on my web-server with this function: function thumb($img_scr) { $thumbWidth = 100; $thumbHeight = 100; $scourceImg = @imagecreatefromjpeg($img_scr); $thumbImg