author | alwin <alwin> | 2004-11-10 23:41:17 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-11-10 23:41:17 (UTC) |
commit | a57e46d9b290712fa1ff106a1be133f4f9751a96 (patch) (unidiff) | |
tree | f590e58a0fd1adf01522f596e02ff99eef69e9fe /noncore/graphics/opie-eye/slave/jpeg_slave.cpp | |
parent | 660b61a7f8b9fb885226507d7f6716ab2dcedbb8 (diff) | |
download | opie-a57e46d9b290712fa1ff106a1be133f4f9751a96.zip opie-a57e46d9b290712fa1ff106a1be133f4f9751a96.tar.gz opie-a57e46d9b290712fa1ff106a1be133f4f9751a96.tar.bz2 |
removed a lot of debug messages
Diffstat (limited to 'noncore/graphics/opie-eye/slave/jpeg_slave.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/slave/jpeg_slave.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/noncore/graphics/opie-eye/slave/jpeg_slave.cpp b/noncore/graphics/opie-eye/slave/jpeg_slave.cpp index 668ad13..0f41359 100644 --- a/noncore/graphics/opie-eye/slave/jpeg_slave.cpp +++ b/noncore/graphics/opie-eye/slave/jpeg_slave.cpp | |||
@@ -178,22 +178,19 @@ QString JpegSlave::fullImageInfo( const QString& path) { | |||
178 | QPixmap JpegSlave::pixmap( const QString& path, int wid, int hei) { | 178 | QPixmap JpegSlave::pixmap( const QString& path, int wid, int hei) { |
179 | ExifData ImageInfo; | 179 | ExifData ImageInfo; |
180 | /* | 180 | /* |
181 | */ | 181 | */ |
182 | if ( !ImageInfo.scan( path ) || ImageInfo.isNullThumbnail() ) { | 182 | if ( !ImageInfo.scan( path ) || ImageInfo.isNullThumbnail() ) { |
183 | QImage img; | 183 | QImage img; |
184 | QImageIO iio( path, 0l ); | 184 | QImageIO iio( path, 0l ); |
185 | if (wid < ImageInfo.getWidth() || hei<ImageInfo.getHeight()) { | 185 | if (wid < ImageInfo.getWidth() || hei<ImageInfo.getHeight()) { |
186 | odebug << "Scaling "<<ImageInfo.getWidth()<<"x"<<ImageInfo.getHeight() | ||
187 | << " to "<<wid<<"x"<<hei<< " ("<<path<<")"<<oendl; | ||
188 | QString str = QString( "Fast Shrink( 4 ) Scale( %1, %2, ScaleFree)" ).arg( wid ).arg( hei ); | 186 | QString str = QString( "Fast Shrink( 4 ) Scale( %1, %2, ScaleFree)" ).arg( wid ).arg( hei ); |
189 | iio.setParameters( str.latin1() );// will be strdupped anyway | 187 | iio.setParameters( str.latin1() );// will be strdupped anyway |
190 | } else { | 188 | } else { |
191 | odebug << "Not scaling "<<ImageInfo.getWidth()<<"x"<<ImageInfo.getHeight()<< " ("<<path<<")"<<oendl; | ||
192 | } | 189 | } |
193 | img = iio.read() ? iio.image() : QImage(); | 190 | img = iio.read() ? iio.image() : QImage(); |
194 | return ThumbNailTool::scaleImage( img, wid,hei ); | 191 | return ThumbNailTool::scaleImage( img, wid,hei ); |
195 | }else{ | 192 | }else{ |
196 | QImage img = ImageInfo.getThumbnail(); | 193 | QImage img = ImageInfo.getThumbnail(); |
197 | return ThumbNailTool::scaleImage( img, wid,hei ); | 194 | return ThumbNailTool::scaleImage( img, wid,hei ); |
198 | } | 195 | } |
199 | } | 196 | } |