Extract cover image from epub ebook
17. 6. 2024It may extract multiple images, not perfect in any sense:
file=book.epub
unzip "$file" "$(zipinfo -1 $file | grep -i cover | grep -E '\.jpg|\.jpeg|\.png')"
p.s. epub may not have any cover.
^ Convert to txt using https://github.com/kevinboone/epub2txt2 and tries to extract cover image next to the original epub.