mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Generate good thumbnail for animated stickers.
This commit is contained in:
@@ -894,6 +894,13 @@ void FileLoadTask::process() {
|
||||
MTP_string(QString()),
|
||||
MTP_inputStickerSetEmpty(),
|
||||
MTPMaskCoords()));
|
||||
if (isAnimation) {
|
||||
goodThumbnail = fullimage;
|
||||
{
|
||||
QBuffer buffer(&goodThumbnailBytes);
|
||||
goodThumbnail.save(&buffer, "WEBP", kThumbnailQuality);
|
||||
}
|
||||
}
|
||||
} else if (isAnimation) {
|
||||
attributes.push_back(MTP_documentAttributeAnimated());
|
||||
} else if (_type != SendMediaType::File) {
|
||||
|
Reference in New Issue
Block a user