jaketmp / ePub-quicklook

NOTE: Not working in Mojave and later! ePub quicklook and spotlight plugins for Mac OS X.
BSD 3-Clause "New" or "Revised" License
570 stars 58 forks source link

Broken cover images on books without covers #14

Closed chrisridd closed 12 years ago

chrisridd commented 12 years ago

Some of the test books (e.g. metadata.epub) have no cover at all.

The cover detection logic seems to display a broken webkit image icon for these books.

chrisridd commented 12 years ago

This is caused by JTPepub's:

cover = [[NSImage alloc] init]; return cover;

Callers expect nil for "no image".

jaketmp commented 12 years ago

Cool - I have some code for extracting the finder icon in my other QLgenerator - I'll splice it in to handle cases of no defined cover.