Compresses a JPEG Image using Java Library