int jpeg_to_jpeg(int input, int output, int targetSize);