I am running a simple compression program I found on the web. I'm trying to get a better idea of how it works. It runs OK but the final Zip file isn't compressed. I am compressing 2 pictures which are about 1.6 MB total but the final zip file is also 1.6 MB. Attached is my source. Any suggestions?
JPG's are already compressed, so it's unlikely they will be compressed further (otherwise, what's to stop you from compressing and re-compressing until you have 1 bit?). Try it with text files. They compress dramatically.