Author: durner Date: 2006-06-25 01:51:33 -0700 (Sun, 25 Jun 2006) New Revision: 3053
Modified: Extractor/src/plugins/thumbnailextractorqt.cc Log: add comment Modified: Extractor/src/plugins/thumbnailextractorqt.cc =================================================================== --- Extractor/src/plugins/thumbnailextractorqt.cc 2006-06-25 07:28:25 UTC (rev 3052) +++ Extractor/src/plugins/thumbnailextractorqt.cc 2006-06-25 08:51:33 UTC (rev 3053) @@ -53,7 +53,7 @@ app = new QApplication(argc, &argv); } -void __attribute__ ((destructor)) my_fini(void) +void __attribute__ ((destructor)) thumnailextractorqt_done(void) { delete app; free(argv); @@ -192,11 +192,16 @@ height = 1; if (width == 0) width = 1; - - /* Resize image */ + + /* Change color depth */ QImage thumb = img->convertToFormat(colors); delete img; + /* Resize image + * + * 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(true) { width /= 2; _______________________________________________ GNUnet-SVN mailing list GNUnet-SVN@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-svn