+size_t JPEG_SaveImage_to_Buffer (char *jpegbuf, size_t jpegsize, int width, int height, unsigned char *data); // returns 0 if failed, or the size actually used
+qboolean Image_Compress(const char *imagename, size_t maxsize, void **buf, size_t *size);