Smooth scaling for images
Fixes some issues with inline images.
This commit is contained in:
parent
5e684a0a2f
commit
e5a55ab1b9
@ -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 New Issue
Block a user