View Single Post
Old 01-25-2011, 03:31 PM   #8
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,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No width and height are set to 600x800 only when preserve aspect ratio is set, which in turn sets the preserveAspectRatio property of the container <svg> element to xMidYMid meet which means that a compliant svg renderer has to render the image within the viewbox (which is also set to 600x800 while preserving the aspect ratio)

Use an epub viewer that properly implements the SVG spec, like calibre's epub viewer and you will see that the aspect ratio is indeed preserved.
kovidgoyal is offline   Reply With Quote