mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-06-03 00:58:15 -04:00
Quality option can be returned without parsing input file.
This commit is contained in:
parent
8845dd9818
commit
8b9125c913
@ -722,13 +722,15 @@ bool QAVIFHandler::write(const QImage &image)
|
||||
|
||||
QVariant QAVIFHandler::option(ImageOption option) const
|
||||
{
|
||||
if (option == Quality) {
|
||||
return m_quality;
|
||||
}
|
||||
|
||||
if (!supportsOption(option) || !ensureParsed()) {
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
switch (option) {
|
||||
case Quality:
|
||||
return m_quality;
|
||||
case Size:
|
||||
return m_current_image.size();
|
||||
case Animation:
|
||||
|
Loading…
x
Reference in New Issue
Block a user