Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 676664 - app-text/calibre does not show cover images and can't obtain them
Summary: app-text/calibre does not show cover images and can't obtain them
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Ian Stakenvicius
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-28 21:15 UTC by Paweł Ciechomski
Modified: 2019-02-02 09:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Point no 1 and 2 (2019-01-28-221245_201x287_scrot.png,45.84 KB, image/png)
2019-01-28 21:15 UTC, Paweł Ciechomski
Details
Log from built in cover lookup tool (file_676664.txt,11.05 KB, text/plain)
2019-01-28 21:17 UTC, Paweł Ciechomski
Details
emerge --info (file_676664.txt,5.73 KB, text/plain)
2019-01-28 21:18 UTC, Paweł Ciechomski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Ciechomski 2019-01-28 21:15:35 UTC
Created attachment 563140 [details]
Point no 1 and 2

Calibre in every available version has some problems with displaying covers.
1. It show generic Calibre cover in main window instead of the one used in book, cover is even without title and author.
2. Generating cover in calibre does nothing - new cover is not generated, always shows generic one.
3. Obtaining covers also does not work. Log says that it found covers and download them but it does not show them.

For me looks like some missing image processing related dependency since same versions works perfecly for me on other distros.
Comment 1 Paweł Ciechomski 2019-01-28 21:17:11 UTC
Created attachment 563142 [details]
Log from built in cover lookup tool
Comment 2 Paweł Ciechomski 2019-01-28 21:18:11 UTC
Created attachment 563144 [details]
emerge --info
Comment 3 Paweł Ciechomski 2019-02-02 09:01:54 UTC
Spend some time analyzing Calibre code and finally found a solution.
Calibre uses PyQt5 with USE=gui necessary to install. This flag pulls dev-qt/qtgui but Calibre ebuild does not enforce user to set USE=jpeg to dev-qt/qtgui which is needed to display and generate images, because Calibre uses QtImageWriter class and internally operates on jpeg images.

Adding USE=jpeg to dev-qt/qtgui solves the problem, tested on stable and newest version available in official overlay.

Proposed fix: require USE=jpeg for dev-qt/qtgui in Calibre ebuild