View Single Post
Old 06-08-2025, 11:40 AM   #69
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,857
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Quoth View Post
Really? How do you know what size the screen is, or does the image always scale?
Because I use a svg wrapper inside a div with a height of 99vh So, no matter how big is the picture, the wrapper makes its magic and the image always will fit inside the space asigned. I've done a lot of work (and testing) on ​​this point, and I can assure you that using an SVG wrapper makes the problems go away. But I don't always set the container div to 99vh in height; depending on the image (mainly half-page images), I set it to 50vh (or 60vh) in height. The thing even works in landscape mode; watch the following examples (with full and half page images):

https://www.mobileread.com/forums/sh...6&postcount=16

https://www.mobileread.com/forums/sh...0&postcount=17

Of course, all of this is done under epub3 together with appropriate code to avoid fragmentation.

Last edited by RbnJrg; 06-08-2025 at 11:43 AM.
RbnJrg is offline   Reply With Quote