I have created a site where users can upload images to a mysql server and then the images are displayed on another page. If possible i would like to resize the image before the data uploads. for example if the image is 1024 x 2000 and 2mb. It would resize the image to 400 x 600 and 200kb. or something of the sorts. then it would upload that data and store it in my database. As of now my script uploads, stores, and displays the image. However if it is 2mb it takes much longer to upload (and download), i am currently using (img width=400px height=600px) to display a smaller image.
image resizing
Collapse
X
-
Tags: None
-
Perhaps, and I don't know how to do this, there is some way of restricting the size of file a user can upload to your site. In this way you would get around the problem you have and the user would have to re-size the image themselves.
I'm sure I've seen this sort of thing somewhere, I just can't remember where.
Cheers
nathjComment
Comment