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?
|