Smooth scaling for images

Fixes some issues with inline images.
pull/218/head
Nicolas Werner 5 years ago
parent 5e684a0a2f
commit e5a55ab1b9
  1. 3
      src/MxcImageProvider.cpp

@ -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…
Cancel
Save