

import javaQuery.j2ee.ImageResize;
public class imagetest {
public static void main(String[] args) {
ImageResize ir = new ImageResize();
ir.compressImage("c:\\test.JPG", 300, 300);
}
}
Image Resize ir = new ImageResize(); ir.compressImage("FileLink", width, height);
Note: If you don't want to change width and height then set width = 0 and height = 0 . It'll compress image with original width and height (Compress File size).
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.