mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Smooth scaling for images
Fixes some issues with inline images.
This commit is contained in:
parent
5e684a0a2f
commit
e5a55ab1b9
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ MxcImageResponse::run()
|
|||
auto data = cache::image(fileName);
|
||||
if (!data.isNull()) {
|
||||
m_image = utils::readImage(&data);
|
||||
m_image = m_image.scaled(m_requestedSize, Qt::KeepAspectRatio);
|
||||
m_image = m_image.scaled(
|
||||
m_requestedSize, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
||||
m_image.setText("mxc url", "mxc://" + m_id);
|
||||
|
||||
if (!m_image.isNull()) {
|
||||
|
|
Loading…
Reference in a new issue