What is the best way for reducing the file size of photos? I don't want to send 1MB or more.
In fact ultimately I would like a function which would return the image back to be less than a defined size. Doing any scaling and sampling automatically.
Bitmap pic_out = reduce_bitmap_to(Bitmap pic_in, size_t filesize)