Click here to Skip to main content
15,920,513 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:

I want to compress image before upload on the server on client side.
How could I achieve this functionality.
Please suggest some solution.

Thank you,
TheRealSteveJudge 17-Apr-15 2:51am    
What do you mean by image?
jpg, png etc.?
If yes, what image types do you want to upload?
yashu verma 17-Apr-15 2:55am    
Yes, any image type like jpg,png etc.
If a user upload one or more image then these images should first compress and then upload on the server.
Please suggest....

Images formats (most of them : jpg, png, gif) are already compressed and recompressing them will offer very little space savings.
Share this answer
yashu verma 17-Apr-15 3:11am    
If we have image formats other then these with size in MBs then?
Mehdi Gholam 17-Apr-15 3:24am    
Like what?
TheRealSteveJudge 17-Apr-15 3:23am    
You can check this


Hope it will help....
Share this answer
yashu verma 17-Apr-15 4:27am    
But in this, Image file will go to the server and then it will compress and save.
Is this possible that It could compress at client end using jQuery and then after compression it go to the server?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900