Do not scale up images smaller than the thumbnail size

Review Request #124416 - Created July 22, 2015 and submitted

Information
Aurélien Gâteau
gwenview
master
15a7ac1...
Reviewers
gwenview

When generating thumbnails Gwenview asks the QImageReader to scale at load time if possible. Seems like the PNG reader gains support for this recently, resulting in Gwenview asking the PNG reader to scale images at load, including small images like icons, which gets scaled up to fit the thumbnail square. This is not good since it produces blurry thumbnails.

This patch checks if the image is larger than the thumbnail square before asking the QImageReader to scale.

Tested with small and large images.

Aurélien Gâteau
David Edmundson
Aurélien Gâteau
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 9cd7aa54e6d702c6e1d20d8554b0924f70c234fe by David Edmundson on behalf of Aurélien Gâteau to branch Applications/15.08.
Loading...