We all have upload image functionality in our web apps. But we people don’t optimize the images uploaded by the user.
Here are the two quick things you can do to optimize your images:
- Reduce the quality of the pictures. You need to take the call, How much?
- Save images as progressive pictures.
is the code which do all the magic behind the screens. 80 is the factor of reducing image quality and interlace plane saves the image as progressive image :)
Let the more suggestions come for image optimizations.