Thread: Image size lost
View Single Post
Old 09-30-2014, 11:21 PM   #8
pbw
Member
pbw began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
When the page viewing the image is too narrow, the images are auto-scaled by most viewers, I doubt that the auto-scaling preserves aspect ratio. I know in the calibre viewer it does not (it's implemented simply by setting max-width as opposed to using javascript, which is somewhat slower)

All those options simply control image file size and are irrelevant to aspect ratios.


Would it work to set max-height to a ratio-preserving value? Or is max-height a second-class citizen in the viewers?

Incidentally, iBooks.app does seem to scale in both dimensions. Obviously, the app environment gives them a lot more flexibility. Even so, iBooks has very restricted MathML support.
pbw is offline   Reply With Quote