PDA

View Full Version : Compress image



Mycoding
25 Nov 2010, 9:51 AM
Excuse me for my question that is not about ExtJS.

I need to compress size of sending image on the site by php.
Could you be so kind to hep me?

I mean we send over ExtJS form image and on the server php
do something and from 1.6 mb we get 70 kb.
I don't need to resize I need less size to store image.

Animal
26 Nov 2010, 2:35 PM
There's only so much you can do depending on the image format: Some are already compressed and will not compress any more. JPEG is already compressed.

And it also depends how much image information you are willing to lose. JPEG is lossy.

But if you have say a BMP of TIFF, then you can compress. You should post this question on a PHP forum.