Skip to content

fix: Add EPUB 3 cover image detection#760

Merged
daveallie merged 1 commit intocrosspoint-reader:masterfrom
itsthisjustin:fix/epub-missing-cover
Feb 8, 2026
Merged

fix: Add EPUB 3 cover image detection#760
daveallie merged 1 commit intocrosspoint-reader:masterfrom
itsthisjustin:fix/epub-missing-cover

Conversation

@itsthisjustin
Copy link
Contributor

I had an epub that just showed a blank cover and wouldnt work for the sleep screen either, turns out it was an epub3 and I guess we didn't support that. Super simple fix here

@itsthisjustin itsthisjustin marked this pull request as draft February 8, 2026 03:17
@itsthisjustin itsthisjustin changed the title Add EPUB 3 cover image detection fix: Add EPUB 3 cover image detection Feb 8, 2026
@itsthisjustin itsthisjustin marked this pull request as ready for review February 8, 2026 03:19

// EPUB 3: Check for cover image (properties contains "cover-image")
if (!properties.empty() && self->coverItemHref.empty()) {
if (properties == "cover-image" || properties.find("cover-image ") == 0 ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the empty space after cover-image by mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the empty space after cover-image by mistake?

No apparently epub 3 uses space separated values for properties so this is an easy way to catch the cover image no matter where it shows in the list

@daveallie daveallie merged commit 7176949 into crosspoint-reader:master Feb 8, 2026
5 of 7 checks passed
lukestein pushed a commit to lukestein/crosspoint-reader that referenced this pull request Feb 8, 2026
I had an epub that just showed a blank cover and wouldnt work for the
sleep screen either, turns out it was an epub3 and I guess we didn't
support that. Super simple fix here
jdk2pq added a commit to jdk2pq/crosspoint-reader that referenced this pull request Feb 9, 2026
…king-space

* master:
  feat: Add percentage support to CSS properties (crosspoint-reader#738)
  Use GITHUB_REF_NAME over GITHUB_HEAD_REF in release candidate workflow
  Add release candidate workflow
  fix: Allow OTA update from RC build to full release (crosspoint-reader#778)
  fix(ui): Add Back label in KOReader Sync screen (crosspoint-reader#770)
  fix: Add EPUB 3 cover image detection (crosspoint-reader#760)
  feat: A web editor for settings (crosspoint-reader#667)
  feat: add HalStorage (crosspoint-reader#656)
  perf: optimize drawPixel() (crosspoint-reader#748)
  feat: wakeup target detection (crosspoint-reader#731)
  fix: Scrolling page items calculation (crosspoint-reader#716)
  refactor: Rename "Embedded Style" to "Book's Embedded Style" (crosspoint-reader#746)
  feat: optimize fillRectDither (crosspoint-reader#737)
Marma92 pushed a commit to Marma92/crosspoint-reader that referenced this pull request Feb 10, 2026
I had an epub that just showed a blank cover and wouldnt work for the
sleep screen either, turns out it was an epub3 and I guess we didn't
support that. Super simple fix here
Unintendedsideeffects pushed a commit to Unintendedsideeffects/crosspoint-reader that referenced this pull request Feb 17, 2026
I had an epub that just showed a blank cover and wouldnt work for the
sleep screen either, turns out it was an epub3 and I guess we didn't
support that. Super simple fix here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants