mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-02 15:21:57 -04:00
Fix loading of default cover image
This commit is contained in:
parent
8a01647dba
commit
09eb891647
@ -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))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user