Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
Resize image client side BEFORE upload
Old 05-14-2005, 10:26 AM Resize image client side BEFORE upload
emalrola's Avatar
Skilled Talker

Posts: 97
Trades: 0
I have been searching the web all morning to find a way of doing this, but to no avail....

I have a client (not very computer literate) who wants to upload images to her site. I know that if I do server-side resize, she will try to upload huge images and use all her bandwidth/kill the system.

So I need an automated way of resizing the image BEFORE upload.

Can I do this with javascript? or does anyone know another way (all I can find is php/asp which is obviously server-side)

I do not want a tool she has to download onto her PC - I want a script that I can include from my code and do the resizing automatically without the user even knowing...

Can anyone suggest how I can do this? (It can be IE specific, it does not have to be generic)

Many thanks
__________________
Emalrola


Please login or register to view this content. Registration is FREE
emalrola is offline
View Public Profile
 
 
Register now for full access!
Old 05-14-2005, 05:16 PM
OmuCuSucu's Avatar
Vi Veri Veniversum Vivus

Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
Trades: 0
as far as i know javascript has no image rezising/drawing/etc capabilities ... you would still need something else on the clients computer to get it done.

as i said ... as far as i know...
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
OmuCuSucu is offline
View Public Profile
 
Old 05-18-2005, 08:07 AM
Novice Talker

Posts: 13
Location: Sydney Australia
Trades: 0
unfortunately, without installing software on your client's machine
any script you run can only manipulate your image once it's on your server as that is where your script lives. it's physically impossible.

bummer dude.

if you set up her machine with IIS you might be able to do it using her machine as a server. but it's probably easier to send her something like photoshop elements on CD.
__________________

Please login or register to view this content. Registration is FREE
rimian is offline
View Public Profile Visit rimian's homepage!
 
Old 05-18-2005, 12:01 PM
Phaedrus's Avatar
Ultra Talker

Posts: 271
Location: CA
Trades: 0
The best you can do with JavaScript is probably setting a limit to the image dimensions. If it's too big you can cancel the upload and show a helpful error message.
__________________

Please login or register to view this content. Registration is FREE
Phaedrus is offline
View Public Profile
 
Old 05-18-2005, 12:43 PM
desertland's Avatar
Skilled Talker

Posts: 86
Trades: 0
Yep, there's no real way to resize or change the quality of the image to upload using javascript. You could do things like blocking .bmp files, but that could only help so much...
__________________
I store my recipes online (the way nature intended) at
Please login or register to view this content. Registration is FREE
desertland is offline
View Public Profile
 
Old 03-10-2010, 01:17 AM Re: Resize image client side BEFORE upload
Junior Talker

Posts: 1
Name: Tom
Trades: 0
I know this is a very very old thread, but I figured since it came up in search results others would find this. Since there was no answer (and probably no other good solution other than a Java applet at the time), I figured I'd provide an answer.

To anyone looking to resize an image before uploading there are now great options. In fact, it actually did take several years before a good solution was possible. It was only with the recent version of Flash did this become feasible.

Agile Uploader
www shift8creative.com/projects/agile-uploader/index.html

It will let you resize images (client side) before uploading to your server. This can eliminate the need for things like GD library and such (many cases not all)...but more importantly save you TONS of money on your hosting costs while at the same time accomplishing the goal of the initial post here...That is, any person that can attach an image can upload the image. One need not know how to scale the image in another program on their computer and save it down for web use.

You can even attach the image right off the camera's memory card. It's a great solution and there's only a few tools like this out there right now. Agile Uploader has some great features that others don't.

Last edited by chrishirst; 03-11-2010 at 07:54 PM..
shift8 is offline
View Public Profile
 
Closed Thread     « Reply to Resize image client side BEFORE upload
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22747 seconds with 12 queries