Smooth scaling for images

Fixes some issues with inline images.
This commit is contained in:
Nicolas Werner 2020-06-07 14:53:35 +02:00
parent 5e684a0a2f
commit e5a55ab1b9
1 changed files with 2 additions and 1 deletions

View File

@ -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()) {