Login
You're viewing the code4lib.social public feed.
  • Dec 3, 2026, 2:47 AM

    @masukomi usually step one is to run the epub through zip, but mostly because I get grumpy about unnecessarily large files. (Well, and change the extension because of contractual nonsense on Kobo readers…)

    💬 1🔄 0⭐ 0

Replies

  • Dec 3, 2026, 12:10 PM

    @wordshaper epubs ARE zip files to begin with. You literally zip a folder of of HTML and CSS and then replace the .zip extension with .epub

    💬 1🔄 0⭐ 0
  • Dec 3, 2026, 1:13 PM

    @masukomi yes, I know they’re zip files. Unfortunately they’re very commonly uncompressed zip files, and a lot bigger than they need to be. (I assume either people misread the standard, or some old ePub reader was broken about this so “don’t compress the files” got stuck in code) I meant generate an ePub with compression enabled.

    And because I know the extension thing is possibly confusing, renaming the file to end .kepub.epub used kobos better render engine.

    💬 0🔄 0⭐ 0