revert gico format from webp to png

This commit is contained in:
Xiao YiFang 2022-10-26 21:00:04 +08:00
parent 9719091776
commit 408f994779

View file

@ -335,7 +335,7 @@ sptr< Dictionary::DataRequest > ArticleNetworkAccessManager::getResource(
QByteArray bytes;
QBuffer buffer(&bytes);
buffer.open(QIODevice::WriteOnly);
dictionaries[ x ]->getIcon().pixmap( 64 ).save(&buffer, "webp");
dictionaries[ x ]->getIcon().pixmap( 64 ).save(&buffer, "PNG");
buffer.close();
sptr< Dictionary::DataRequestInstant > ico = new Dictionary::DataRequestInstant( true );
ico->getData().resize( bytes.size() );