[PHP] imagejpeg and downloading images

2003-03-11 Thread Doug Coning
Hi All, I'm using the following code to try to download images automatically from a directory: header('Content-Type: image/jpeg'); $im = imagecreatefromjpeg(001_SM77GR.jpg); imagejpeg($im,'',85); imagedestroy($im); I copied this code from PHP.net. However, when I run the above code, it doesn't

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread James Holden
READ the manual. The snippet is correct but if you want to take advantage of the saving features of this function follow the function information at the top of the page. Jumping straight to the user snippets is a mistake as they are user contributed and may not document the whole function.

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Mat Harris
try using (i think) a content-disposition:attachement header i am not in front of my machine so that will just have to be a rough guide, sorry On Tue, Mar 11, 2003 at 10:40:33 -0600, Doug Coning wrote: Hi All, I'm using the following code to try to download images automatically from a

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
At 17:40 11.03.2003, Doug Coning said: [snip] header('Content-Type: image/jpeg'); $im = imagecreatefromjpeg(001_SM77GR.jpg); imagejpeg($im,'',85); imagedestroy($im); I copied this code from PHP.net. However, when I run the above code, it doesn't download

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Ernest E Vogelsinger
At 17:47 11.03.2003, James Holden said: [snip] READ the manual. The snippet is correct but if you want to take advantage of the saving features of this function follow the function information at the top of the page. Jumping straight to the user snippets

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread adrian [EMAIL PROTECTED]
] To: [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 4:40 PM Subject: [PHP] imagejpeg and downloading images Hi All, I'm using the following code to try to download images automatically from a directory: header('Content-Type: image/jpeg'); $im = imagecreatefromjpeg(001_SM77GR.jpg); imagejpeg

Re: [PHP] imagejpeg and downloading images

2003-03-11 Thread Doug Coning
[EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 4:40 PM Subject: [PHP] imagejpeg and downloading images Hi All, I'm using the following code to try to download images automatically from a directory: header('Content-Type: image/jpeg'); $im