Skip to content

1.5.0.9-dev4-cpr-vcodex-steroids

Choose a tag to compare

@marcoand75 marcoand75 released this 17 Aug 10:56
· 11 commits to master since this release

๐Ÿ› ๏ธ Library & Cover Generation Fixes

This release fixes several issues in the Library around cover generation, cache handling, and page navigation.

๐Ÿ–ผ๏ธ Cover generation & display

  • Fixed absent covers in the Library. EPUB cover thumbnails were generated correctly but never shown. The root cause was a cache-path hash mismatch: Epub wrote thumbnails under an FNV-1a 64-bit hash directory, while the Library read them under a std::hash directory โ€” so the generated cover was looked up in the wrong folder.
  • Fixed oversized thumbnails. EPUB cover generation used a fill mode that produced images larger than the tile box (e.g. 130ร—197 for a 130ร—190 tile) on non-3:5 covers, which also caused out-of-range pixels during rendering. Generation now uses the adaptive (contain) mode, so the image always fits the tile without overflow.

๐Ÿ”‘ Cache hash management

  • Aligned all EPUB cache paths to a single hash (FNV-1a 64-bit), matching Epub. LibraryIndex and LibraryActivity now use the same hash for cover read/write.
  • Fixed orphaned caches on book deletion. Deleting a book removed the wrong cache folder (using the old hash), leaving epub_<fnv64> directories behind. The correct folder is now removed.
  • Removed dead code (EpubParser::generateCover) that still used the old hash and was never called anywhere โ€” eliminating the last source of inconsistent hashing.

๐Ÿ“„ Multi-row page navigation dots

  • Fixed page-position dots overflowing the screen. With many books (e.g. 312 in a 2ร—2 layout = 78 pages), the single row of pagination squares was wider than the display and drew past the screen edges. The dots now wrap onto multiple rows, each row centered, and the block moves up as rows grow so it never overlaps the button hints.

๐Ÿงน Summary table

Area Fix
Cover display Thumbnails now appear (hash alignment)
Cover size Adaptive fit, no oversized/out-of-range image
Cache hash Unified FNV-1a 64 for EPUB everywhere
Book deletion Correct cache folder removed
Pagination dots Wrap onto multiple centered rows