RE: [PHP] imagecopyresized problems

2002-09-09 Thread joakim . andersson
Hi, > imagejpeg($dst_img); This actually outputs the image, so your result is not unexpected. Try this instead: imagejpeg($dst_img, "/path/and/filename/to/newfile.jpg"); Regards Joakim Andersson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] imagecopyresized problems

2002-09-07 Thread Brian & Shannon Windsor
I'm trying to use imagecopyresized to generate a thumbnail image and then store the image in the proper place, but I'm running into some problems. I'm using the standard code: $src_img = imagecreatefromjpeg("../php/images/".$HTTP_POST_FILES['imagefile']['name']); if (imagesx($src_img)<$max_widt

RE: [PHP] imagecopyresized() problems

2002-07-09 Thread joakim . andersson
It gives much better quality. Then to output the image from another script (not within test.php) use this: Regards Joakim Andersson > -Original Message- > From: Lance Earl [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 09, 2002 8:54 AM > To: [EMAIL PROTECTED] > Subject

[PHP] imagecopyresized() problems

2002-07-08 Thread Lance Earl
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: "); if(file_exists($master_ima

Re: [PHP] imagecopyresized() problems

2002-06-24 Thread hugh danaher
<[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 24, 2002 3:57 AM Subject: [PHP] imagecopyresized() problems > Hi, > > I am trying to copy and resize an image using imagecopyresized() and > cannot seem to crack it. Below is the code I am using, can anyone tel

Re: [PHP] imagecopyresized() problems

2002-06-24 Thread Jason Wong
On Monday 24 June 2002 18:57, Phil Ewington wrote: > Hi, > > I am trying to copy and resize an image using imagecopyresized() and > cannot seem to crack it. Below is the code I am using, can anyone tell > me why I keep getting and invalid image resource warning and is this > the src or dest parame

[PHP] imagecopyresized() problems

2002-06-24 Thread Phil Ewington
Hi, I am trying to copy and resize an image using imagecopyresized() and cannot seem to crack it. Below is the code I am using, can anyone tell me why I keep getting and invalid image resource warning and is this the src or dest parameter that the error is referring to? $srcImageName = "../pr