Commit 0140c9a7 authored by Martin Tobias Holmedahl Sandsmark's avatar Martin Tobias Holmedahl Sandsmark Committed by Albert Astals Cid
Browse files

image thumbnails: Let QImageReader automatically rotate/scale source image

parent af33d811
......@@ -17,6 +17,7 @@ bool ImageCreator::create(const QString &path, int, int, QImage &img)
{
// create image preview
QImageReader ir(path);
ir.setAutoTransform(true);
ir.setDecideFormatFromContent(true);
img = ir.read();
if (img.isNull())
......
Supports Markdown
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