Quote:
Originally Posted by KevinH
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.