mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-27 01:02:34 -04:00
Fix loading of default cover image
This commit is contained in:
@@ -570,7 +570,7 @@ class PixmapWithDominantColor(QPixmap):
|
||||
|
||||
@lru_cache(maxsize=2)
|
||||
def default_cover_pixmap(width: int, height: int) -> PixmapWithDominantColor:
|
||||
i = QImage(I('default_cover_image.png'))
|
||||
i = QImage(I('default_cover.png'))
|
||||
_, i = resize_to_fit(i, width, height)
|
||||
return PixmapWithDominantColor.fromImage(ImageWithDominantColor(i))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user