Skip to content
Snippets Groups Projects
Commit e5a55ab1 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Smooth scaling for images

Fixes some issues with inline images.
parent 5e684a0a
No related branches found
No related tags found
No related merge requests found
......@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment