i want to compress the images before i save them in my server,., i tried few codes but they reduce the quality..., in my site users generally upload file of about 2 to 4 mb i want to save them in kbs,. but without having to compromise with the image quality,.,.
You can't make an image smaller without loosing quality, higher detail takes more space to save, that's the law of computers.
However if you want to reduce the image size from ex. 2048x1536 to 512x384 you'll only have a one 16:th of the pixels left making the image about one 16th of the size without loosing noticeable quality unless the user zooms the image.
This article might help you out in achieving this:
kumarrishav7
Member
191 Points
111 Posts
image size compression
Sep 07, 2011 12:45 PM|LINK
i want to compress the images before i save them in my server,., i tried few codes but they reduce the quality..., in my site users generally upload file of about 2 to 4 mb i want to save them in kbs,. but without having to compromise with the image quality,.,.
please help
thanku
compression size image upload
Lazz. _
Contributor
4419 Points
754 Posts
Re: image size compression
Sep 07, 2011 01:43 PM|LINK
You can't make an image smaller without loosing quality, higher detail takes more space to save, that's the law of computers.
However if you want to reduce the image size from ex. 2048x1536 to 512x384 you'll only have a one 16:th of the pixels left making the image about one 16th of the size without loosing noticeable quality unless the user zooms the image.
This article might help you out in achieving this:
http://weblogs.asp.net/gunnarpeipman/archive/2009/04/02/resizing-images-without-loss-of-quality.aspx
compression size image upload
To help others, don't forget to mark the post as answer if it answered your question.