diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-01-13 16:04:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-01-13 16:04:51 +0000 |
commit | 5eafb01bbb8c7e151a9e08f9981626814d2933bd (patch) | |
tree | 02ae5efa52a1114eb0d67e9e1ed1f4e3bb24aa73 | |
parent | 6b6b11e3598c79c015a010fae5a35cee000a8dd8 (diff) | |
download | libextractor-5eafb01bbb8c7e151a9e08f9981626814d2933bd.tar.gz libextractor-5eafb01bbb8c7e151a9e08f9981626814d2933bd.zip |
initially scale down fast
-rw-r--r-- | src/plugins/thumbnailqt_extractor.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/thumbnailqt_extractor.cc b/src/plugins/thumbnailqt_extractor.cc index 0964197..6a66981 100644 --- a/src/plugins/thumbnailqt_extractor.cc +++ b/src/plugins/thumbnailqt_extractor.cc | |||
@@ -133,6 +133,11 @@ EXTRACTOR_thumbnailqt_extract (const char *data, | |||
133 | * Qt's scaled() produces poor quality if the image is resized to less than | 133 | * Qt's scaled() produces poor quality if the image is resized to less than |
134 | * half the size. Therefore, we resize the image in multiple steps. | 134 | * half the size. Therefore, we resize the image in multiple steps. |
135 | * http://lists.trolltech.com/qt-interest/2006-04/msg00376.html */ | 135 | * http://lists.trolltech.com/qt-interest/2006-04/msg00376.html */ |
136 | while ( (width > 32*THUMBSIZE) || (height > 32*THUMBSIZE) ) | ||
137 | { | ||
138 | width /= 2; | ||
139 | height /= 2; | ||
140 | } | ||
136 | while ( (width > THUMBSIZE) || (height > THUMBSIZE) ) | 141 | while ( (width > THUMBSIZE) || (height > THUMBSIZE) ) |
137 | { | 142 | { |
138 | width /= 2; | 143 | width /= 2; |