Thread: Image size lost
View Single Post
Old 09-30-2014, 11:36 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,501
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
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.
kovidgoyal is offline   Reply With Quote