[PHP] Re: imagecopyresized problems

2002-09-13 Thread Desi Petrovic
Hi, this seems to be a problem with headers. Try this: ?php $max_width = 0; $tmp = imagecreatefromjpeg(img.jpg); if (imagesx ($tmp) $max_width) { imagejpeg($tmp); exit(); } $dst_img = imagecreate(80,60); imagecopyresized($dst_img,$tmp,0,0,80,60,80,60,imagesx($tmp),imagesy ($tmp));

[PHP] Re: imagecopyresized() problems

2002-07-09 Thread Richard Lynch
I am trying to create a piece of code that will create and display thumbnail image. When trying to send the image to a browser, I see binary data rather then an image. You can see the problem at www.dallypost.com/a/test.php The troubled cose for this page follows: ?PHP print(img src =