How to get cover image from epub file?
Asked Answered
C

2

8

I required to display the cover image from shared epub file(Like iBooks and kindle).

Suppose I shared multiple book means unzip take long time.

Is it any alternative way?

I spend more time in Google. But I can not get solution.

please give some idea with sample code.

thanks in advance.,

Clabo answered 22/5, 2014 at 6:34 Comment(5)
This might help? https://mcmap.net/q/1470378/-getting-xhtml-from-drm-epub A dark, dark tunnel you're going down..Masturbation
Have you found any solution ?Modesta
@Kavya: I tried Cover image URL from my server while get book information. Otherwise we have to unzip epub file and then get the content of cover image.Clabo
have you found specific steps to get cover image from unzipped epub?Modesta
Here is a step-by-step guide https://mcmap.net/q/1470379/-fetch-cover-image-from-epub-in-iosMolten
T
6

You can unzip the file and goto OEBPS folder to look for an image file.

run this at command line

unzip abc.epub // replace the abc.epub file with your epub file path
Theoretician answered 23/2, 2018 at 20:55 Comment(1)
This is the wayGalliett
A
0

cover image will always be the first page to be displayed. So get the content of cover image from epub and try to display it

Almsman answered 22/5, 2014 at 7:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.