Thread: Image size lost
View Single Post
Old 10-01-2014, 09:15 PM   #10
pbw
Member
pbw began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Dec 2011
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
A max-anything is only an upper limit. The viewer is free to resize the other dimension however it likes. Now as long as you dont set the width or height explicitly on the image, most viewers will resize them preserving aspect ratio. If you do set the width or height explicitly, then aspect ratio will be lost. So in your html, simply remove the explicit width/height setting and you will be fine.
In the generated EPUB, there are not dimensions on the image, only a class, "calibre8". So the viewer seems to be acting unilaterally when resizing only the width.
pbw is offline   Reply With Quote