mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Debug: sprinkle debug messages in thumbnailing code
To ease trouble-shooting of the picture thumbnailer add a number of debug- and info-messages. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
028f53c63b
commit
376b737891
2 changed files with 12 additions and 1 deletions
|
@ -23,6 +23,7 @@ static void scaleImages(PictureEntry &entry, int size, int maxSize)
|
|||
// If thumbnails were written by an earlier version, they might be smaller than needed.
|
||||
// Rescale in such a case to avoid resizing artifacts.
|
||||
if (thumbnail.isNull() || (thumbnail.size().width() < maxSize && thumbnail.size().height() < maxSize)) {
|
||||
qDebug() << "No thumbnail in cache for" << entry.filename;
|
||||
thumbnail = SHashedImage(entry.picture).scaled(maxSize, maxSize, Qt::KeepAspectRatio);
|
||||
QMutexLocker l(&thumbnailMutex);
|
||||
thumbnailCache.insert(entry.filename, thumbnail);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue