libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit 5eafb01bbb8c7e151a9e08f9981626814d2933bd
parent 6b6b11e3598c79c015a010fae5a35cee000a8dd8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 13 Jan 2010 16:04:51 +0000

initially scale down fast

Diffstat:
Msrc/plugins/thumbnailqt_extractor.cc | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/plugins/thumbnailqt_extractor.cc b/src/plugins/thumbnailqt_extractor.cc @@ -133,6 +133,11 @@ EXTRACTOR_thumbnailqt_extract (const char *data, * Qt's scaled() produces poor quality if the image is resized to less than * half the size. Therefore, we resize the image in multiple steps. * http://lists.trolltech.com/qt-interest/2006-04/msg00376.html */ + while ( (width > 32*THUMBSIZE) || (height > 32*THUMBSIZE) ) + { + width /= 2; + height /= 2; + } while ( (width > THUMBSIZE) || (height > THUMBSIZE) ) { width /= 2;