View Single Post
Old 07-25-2017, 12:23 PM   #4
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,624
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by KevinH View Post
What is your screen size here? Where is your 4/3 come from? How will the epub turn out when displayed on a desktop display or ipad/tablet with radically different screen sized and dimensions. I assume your dimensions are given a widthxheight? Is that correct?
Thanks for your interest.

The 4/3 ratio comes from my six-inch Kindle PW3.

I am used to tune my e-books, quite often some image books. I have been adding percentage width for quite a long time. It's enough for me to indicate this precise (and calculated) width to get a perfect display on any EPUB using koreader (and also after conversion with Prince PDF where I produce 9×12 and IPAD size PDF). Why should I refrain from using it? A plugin can be used to suit your personal needs but I guess probably a majority of users could make a good use of this 4/3 aspect ratio.

If this aspect ratio is not convenient for some screen sizes, it can become either a variable or even the plugin should not be used. Though they are perfectly valid css properties, I have not this quality of result with max-width values. "height:auto" is also useless for me (I mean it's as well as nothing).

As Turtle91 said
Quote:
For non-full-page images all you need to do is set the width in % and the height is automatically figured keeping the proper aspect-ratio.
That's why I do not use any other value than the width in percentage, even for fullscreen*. But I have to calculate it and insert it. I wish this could be automated.

*For small images, a CSS class can also be included to set margin-top or margin-bottom values.

Last edited by roger64; 07-25-2017 at 12:40 PM. Reason: automated
roger64 is offline   Reply With Quote