Commit b18be2ed authored by William Tradewell's avatar William Tradewell Committed by Nate Graham
Browse files

Improved quality of JPEG thumbnails

BUG: 411262
FIXED-IN: 20.04

Simple tweak to increase quality of JPEG thumbnails. For some reason the thumbnailer was set to scale them down at the minimum possible quality, and this led to some rather ugly results. This is, of course, no longer the case. See the attached images for a comparison. The image was created in gimp, and shows a near worst-case for the thumbnailer before the fix.



Reviewers: broulik, #frameworks, #vdg, cfeck, ngraham

Reviewed By: #vdg, cfeck, ngraham

Subscribers: meven, volkov, cfeck, bruns, ngraham, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision:
parent e5012639
......@@ -47,7 +47,7 @@ bool JpegCreator::create(const QString &path, int width, int height, QImage &ima
const QSize thumbnailSize = imageSize.scaled(width, height, Qt::KeepAspectRatio);
imageReader.setScaledSize(thumbnailSize); // fast downscaling
imageReader.setQuality(75); // set quality so that the jpeg handler will use a high quality downscaler
JpegCreatorSettings* settings = JpegCreatorSettings::self();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment