ebooklib icon indicating copy to clipboard operation
ebooklib copied to clipboard

How to save the cover image?

Open advancejar opened this issue 2 years ago • 3 comments

epubBook = epub.read_epub('.\3.epub') imgdir = epubBook.get_metadata('OPF', 'cover')[0][1]["content"] img = epubBook.get_item_with_id(imgdir)

then,How can I save it to disk?

advancejar avatar Oct 09 '22 01:10 advancejar

Maybe you can use get_content() to save it.

tschertel avatar Apr 20 '23 15:04 tschertel

@advancejar, 11 months later, did you come up with a solution? Follow-up questions:

  • Are you getting any error messages?
  • What operating system are you using (Win 10, Win 11, Linux, Mac, etc.)?
  • What version of Python are you using?
  • What version/build of ebooklib are you using?

pbaletkeman avatar Sep 26 '23 12:09 pbaletkeman

   您好!您的来信我已接受,我会尽快回复您。

c1924959470 avatar Sep 26 '23 12:09 c1924959470