View Single Post
Old 07-31-2017, 05:40 PM   #25
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,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by KevinH View Post
I am more worried about creating aspect ratio specific epubs in general. For example, many people read on their phone which may have a 3:4 aspect ratio in portrait mode and a 4:3 ratio in landscape. Similar issues exist with tablets, and of course Desktop machine windows can be almost any width and height that fits on a screen.

By hard coding the aspect ratio into your width calculation, you are penalizing devices if the user decides to rotate their reading mode from portrait to landscape.

There simply must be a way to use css without hard coded width percentages that for images that are taller than they are wide, you use max height 100% (forcing the too tall image to be properly scaled down to the height of the device in its current orientation) and similar css for images that are wider than they are tall, that properly handle the current orientation so that images will fit on one page regardless of which way the device is oriented or what aspect ratio is used.

What am I missing? Isn't this what Turtle91 is espousing? Does it not work properly for some reason?
Indeed this 4/3 ratio presumes you'll be reading in portrait mode. Even if it was offered on the Sigil report as a default mode, it should not be seen as a compulsory "same size for all", just like another possibility you give to these portrait mode users . They take it or not. I have no statistics to give you, but I do think they may be a majority among readers...

Using this percentage as an inline style, allows to modify the display very easily. As you use a unique value for each image, I cannot see why it should be better to put it in the stylesheet. The closer this value is from the display, the easier you check it.

Last edited by roger64; 07-31-2017 at 05:44 PM.
roger64 is offline   Reply With Quote