View Single Post
Old 09-15-2019, 12:37 PM   #166
rashkae
Wizard
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 1,147
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by kovidgoyal View Post
Or just use the recommended SVG markup that calibre uses, it works everywhere, including the new reader.
I'll have to do a bit of testing with inline images to make sure I'm not missing a painfully obvious gotchya, but I think, at least for images, wrapping all <img> in a div with max-height: 100vh, max-width: 100vw would be a good option. This could be an option added to the Viewer to "Automatically resize images larger than the screen." Most browsers so something to that effect automatically, and I think Kindles do as well.

Unlike the svg code, this will not zoom the images on higher resolution displays.
rashkae is offline