EVALUATION
The problem is that when the JPEGImageWriteParam code was written, it was
assumed that the compression quality values have a one-to-one mapping to
the compression quality descriptions. But with a careful reading of the
ImageWriteParam spec, it is noticed that the descriptions should refer
to a range of values. (So vals.length should be descs.length+1...)
Since the existing descriptions match specific values, we thought it would
be good to change the descriptions and values slightly to fit:
"Low quality", // 0.00 -> 0.30
"Medium quality", // 0.30 -> 0.75
"Visually lossless" // 0.75 -> 1.00
|