Is there a way, in Java, to compute what the size of a compressed image will be w/o saving the image? (This will be used to determine the quality necessary to compress an image to a specific size.)
Something like this, but in Java instead of C#, and where the Stream can be a dead end.
See Question&Answers more detail:os