Page 1 of 1

Save image to file on server and emailing link

Posted: Sat Apr 15, 2006 4:31 am
by djwk
Hi, just wondering if this is possible and if so, how?

I have an image on my webserver that is constantly being updated, lets call it "image.jpg". What I want to do is when the user clicks a button, automatically save the current image.jpg file to the server in a different folder with a different filename. I dont need to know how to send the link to the image via email as I know how to do this.

But if someone could tell me if the above is possible and possibly some example code of how to do it, that would be GREAT! :)


Alex

Posted: Sat Apr 15, 2006 9:14 am
by feyd

Posted: Sat Apr 15, 2006 10:51 am
by djwk
Thanks, didn't know it was that simple :P

Now I have another problem, is there any way I can simply resize a jpg image file?

I want to resize the image to 200 x 200. Any help would be greatly appreciated :)

Posted: Sat Apr 15, 2006 10:53 am
by feyd
There's several threads on creating thumbnails around the forum. Both in the Tutorial and Code Snippet sections, for instance.

Posted: Sat Apr 15, 2006 11:24 am
by John Cartwright
Search by author onion2k for some great image snipplets