add note about QImageIOHandler::CompressionRatio

png handler was using QImageIOHandler::Quality as compression level (mapped
from 0-100 to 0-9) btw which is far from the meaning of quality since data
can be compressed and decompressed without losing quality, applying filter
to blur pixels and reduce quality is totally different

TODO: replace QImageIOHandler::CompressionRatio with
QImageIOHandler::CompressionLevel

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-02-27 16:38:17 +02:00
parent 0352bd01db
commit 8b05d6c8c8

View file

@ -86,7 +86,8 @@
\value CompressionRatio The compression ratio of the image data. A
handler that supports this option is expected to set its
compression rate depending on the value of this option (an int)
when writing.
when writing. Note that this option is usually taken as
compression level not ratio despite its name.
\value Gamma The gamma level of the image. A handler that supports
this option is expected to set the image gamma level depending on