https://bugs.kde.org/show_bug.cgi?id=469294

Fushan Wen <qydwhotm...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/a3d0491deebb460db5a033c4a |t/987238ac7b414a40d0f10d252
                   |9679e6a5452372e             |b8d73cdb1f0f865

--- Comment #4 from Fushan Wen <qydwhotm...@gmail.com> ---
Git commit 987238ac7b414a40d0f10d252b8d73cdb1f0f865 by Fushan Wen.
Committed on 26/05/2023 at 16:15.
Pushed by fusionfuture into branch 'Plasma/5.27'.

wallpapers/image: resize svg wallpaper to requested size

QImage is rasterized, which means it needs a defined size. If we need to
resize a svg image, the svg image should be loaded by QSvgRenderer and then
QPainter class is used to draw the image onto a new QImage with the desired
size.

Plasma::Svg can help wrap the whole process and provide a cached image
if the wallpaper is loaded again.
FIXED-IN: 5.27.6

(cherry picked from commit a3d0491deebb460db5a033c4a9679e6a5452372e)

M  +12   -4    wallpapers/image/plugin/provider/packageimageprovider.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/987238ac7b414a40d0f10d252b8d73cdb1f0f865

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to