Images seem to lose quality when you load them in Java. Try this out to see what I mean... test_out.jpg is smaller than test_in.jpg
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
public class ImageTest
{
public static void main (String args [])
{
BufferedImage img = ImageIO.read (new File ("test_in.jpg"));
ImageIO.write (img, "JPG", new File ("test_out.jpg"));
}
}
Is there any way around this? I need to manipulate the image in Java, so I can't just input and output the bytes of the file.