Thread: epub3x cover
View Single Post
Old 12-14-2023, 07:06 PM   #13
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,830
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by JSWolf View Post
Forget SVG. Not every ePub reading software will work with SVG. My way has the best chance of working.
That is not true; sorry to be harsh, but your code doesn't work. This is how it looks under:

Bibi Reader:
Click image for larger version

Name:	Bibi Reader.png
Views:	589
Size:	7.3 KB
ID:	205200
The cover is not showed at all.

EpubJS Reader:
Click image for larger version

Name:	EpubJS Reader.png
Views:	604
Size:	372.5 KB
ID:	205199
The right side of the cover is not showed.

Readium Reader:
Click image for larger version

Name:	Readium Reader.png
Views:	569
Size:	464.5 KB
ID:	205201
The cover is not centered, is aligned to the top.

And your code use as anchor the "height" property (height: 100%); so, what happens when the "width" of an image is bigger than its "height"? Because the properties "max-width" and "max-height" are not supported by ADE Legacy (ADE 2.x), it happens the following:

Click image for larger version

Name:	Landscape cover.png
Views:	599
Size:	18.1 KB
ID:	205202 Click image for larger version

Name:	Landscape cover 2.png
Views:	556
Size:	26.7 KB
ID:	205203

The cover can't maintain its proportion. Conclusion: your code doesn't work. I'm wondering if you seriously tested it under ADE 2.x.

By the way, an ereader that does not support an svg wrapper is anything but an ereader.

Last edited by RbnJrg; 12-14-2023 at 07:13 PM.
RbnJrg is offline   Reply With Quote