T
Tim T
Hi,
Could someone please point to to a tutorial / code for dynamically resizing
images on upload, THEN saving to disk on the webserver.
I need users to be able to upload images to my server, but they will not be
aware of optimising graphics for the web, if someone uploads a 300k 640x480
jpeg for example, i need to be able to shrink it down to a - say 400x300 65k
file BEFORE saving to my webserver.
I have been looking on the web and have found plenty of code for resizing
images and dynamically outputting an optimised images from heavy images that
reside on the server, but i need to shirnk it after getting it from the user
as an input stream before saving it to disk to save disk space.
in summary:
user uploads 600k jpeg via file field in web form
code then shrinks this down (may shrink physically or reduce quality or
both)
saves to disk a 65 k jpeg to disk on the webserver.
(note that i'm not interested in the GetThumbNailImage method for jpegs as
this produces too small an image)
I'm sure there is a tutorial out there for this, or if someone has code to
post here to this that would be fantastic
Thanks for any help.
Tim..
Could someone please point to to a tutorial / code for dynamically resizing
images on upload, THEN saving to disk on the webserver.
I need users to be able to upload images to my server, but they will not be
aware of optimising graphics for the web, if someone uploads a 300k 640x480
jpeg for example, i need to be able to shrink it down to a - say 400x300 65k
file BEFORE saving to my webserver.
I have been looking on the web and have found plenty of code for resizing
images and dynamically outputting an optimised images from heavy images that
reside on the server, but i need to shirnk it after getting it from the user
as an input stream before saving it to disk to save disk space.
in summary:
user uploads 600k jpeg via file field in web form
code then shrinks this down (may shrink physically or reduce quality or
both)
saves to disk a 65 k jpeg to disk on the webserver.
(note that i'm not interested in the GetThumbNailImage method for jpegs as
this produces too small an image)
I'm sure there is a tutorial out there for this, or if someone has code to
post here to this that would be fantastic
Thanks for any help.
Tim..