|
|
@ -64,7 +64,7 @@ TQImage CoverImage::load(int size) const
|
|
|
|
if ( !image.isNull() ) {
|
|
|
|
if ( !image.isNull() ) {
|
|
|
|
TQString savepath(_cachefolder);
|
|
|
|
TQString savepath(_cachefolder);
|
|
|
|
savepath.append(TQString::number ( size )).append("@").append(md5sum.hexDigest());
|
|
|
|
savepath.append(TQString::number ( size )).append("@").append(md5sum.hexDigest());
|
|
|
|
image = image.smoothScale(size, size, TQ_ScaleMin);
|
|
|
|
image = image.smoothScale(size, size, TQImage::ScaleMin);
|
|
|
|
if ( !url().isEmpty() ) {
|
|
|
|
if ( !url().isEmpty() ) {
|
|
|
|
image.save( savepath, TQImage::imageFormat ( url() ));
|
|
|
|
image.save( savepath, TQImage::imageFormat ( url() ));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|