gerhardsletten / react-reader

An ePub-reader for React, powered by Epub.js
https://react-reader.metabits.no
Apache License 2.0
676 stars 130 forks source link

Images not replaced with blob urls. Rather it has relative urls. #142

Closed AjayManikantaG closed 1 year ago

AjayManikantaG commented 1 year ago

Hi Team,

I have tried to load epub with the url "https://files-au-prod.cms.commerce.dynamics.com/cms/api/qsjhkgqqvf/binary/MK1Lgj". The images for some pages are not getting loaded with blob urls. Could you please let me know if the epub is wrong or i am missing something here.

Thanks, Ajay

gerhardsletten commented 1 year ago

@AjayManikantaG Was not able to download your epub-file, but it could be that the internal html use external url's in the img-tags. Else the render of the epub-content is done by epub-js and that you need to check that repo. Also try googling "validate epub" to find tools to validate your epub-files

AjayManikantaG commented 1 year ago

let’s play!_alice patrick - Copy.zip

@gerhardsletten I have provided the zip file. Could you please change .zip to .epub to change to epub file.

I have checked the image files in html. Those are mapped correctly. Can you please check once if possible. Let me know your comments and suggestions of how can resolve this issue.

I am suspecting the image names to be an issue. Please suggest me if I am thinking in a right direction.

gerhardsletten commented 1 year ago

@AjayManikantaG You can run unzip <name>.epup to see the contents of the epub. And it looks like the image-paths are broken:

image
AjayManikantaG commented 1 year ago

@gerhardsletten Thanks a lot. I will rectify those.