Thread: epub3x cover
View Single Post
Old 12-28-2023, 09:45 AM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,983
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by RbnJrg View Post
That is not true; sorry to be harsh, but your code doesn't work. This is how it looks under:

Bibi Reader:
Attachment 205200
The cover is not showed at all.

EpubJS Reader:
Attachment 205199
The right side of the cover is not showed.

Readium Reader:
Attachment 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:

Attachment 205202 Attachment 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.
You have to be doing something wrong. The cover should resize to to the full screen size. It does not vertically center. There's no need for it.
JSWolf is offline   Reply With Quote