The image size drops to 25%
I just tested your program on some .jpg files and in two out of three it dropped the file size form about 4 MB to about 1 MB. Is it normal? Both files this happened to them were taken with a camera. But I tested on an smaller image I have downloaded (about 170 KB) and for that it even increase its size a little bit.