D22114: Add saving thumbnails for projects

Alexander Semke noreply at phabricator.kde.org
Thu Jun 27 21:32:49 BST 2019


asemke added inline comments.

INLINE COMMENTS

> Project.cpp:246
> +	buffer.open(QIODevice::WriteOnly);
> +	thumbnail.save(&buffer, "JPEG");
> +	QString image = QString::fromLatin1(bArray.toBase64().data());

We need to scale down the pixmap to a reasonable size. Something like 512x512px would be enough for the preview thumbnail. We don't need to save with the full resolution of a 4K monitor.

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/20190627/25f4d91e/attachment-0001.html>


More information about the kde-edu mailing list