D22114: Add saving thumbnails for projects
Alexander Semke
noreply at phabricator.kde.org
Fri Jun 28 09:49:11 BST 2019
asemke added inline comments.
INLINE COMMENTS
> Project.cpp:246
> + buffer.open(QIODevice::WriteOnly);
> + QPixmap scaledThumbnail = thumbnail.scaled(512,512);
> + scaledThumbnail.save(&buffer, "JPEG");
please check the aspectRatioMode parameter in QPixmap::scaled(). The default value is IgnoreAspectRatio. We need KeepAspectRation here I'd say.
REPOSITORY
R262 LabPlot
REVISION DETAIL
https://phabricator.kde.org/D22114
To: ferenczkovacs, asemke, fkristof
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20190628/b30467b9/attachment-0001.html>
More information about the kde-edu
mailing list