Skip to content

Feature #43: Extract and display cover images from EPUB/AZW3 #121

@lllyys

Description

@lllyys

Description

EPUB and AZW3 books show format placeholder icons instead of actual cover images in the library.

Current State

Infrastructure Already In Place (~40%)

  • Book.coverImagePath: String? — model field exists, always nil
  • BookMetadata.coverImagePath: String? — metadata field exists, never populated
  • CustomCoverStore — JPEG compression, disk storage, cleanup — fully working
  • BookCardView / BookRowView — already check for cover image, fall back to placeholder
  • Import pipeline passes coverImagePath through, just receives nil

What's Missing

  1. EPUB cover extraction — Parse content.opf for cover image reference, extract from ZIP
  2. AZW3 cover extraction — Read EXTH records for embedded cover, or use Foliate-js
  3. Save extracted cover to disk during import (via CustomCoverStore or similar)
  4. Populate Book.coverImagePath in BookImporter.importFile()

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions