I have 1000s of image files(jpg/png) which I want to get compressed so as to reduce the file size. Quality can be compromised a bit.
I want to know, is there any way in java by which I can get the image compressed?
I found a code on internet for compression which uses ImageWriterParam class, but the problem is that - instead of reducing, it increases the size of the new image.
Please guide me in this context. If, possible, please tell me where can I get code for the same.