View Single Post
Old 12-19-2008, 03:07 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: 44,019
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Jellby View Post
Great, I was using an image but someone suggested wrapping it in SVG

According to the SVG specification, there should be no distortion in the images if preserveAspectRatio="xMidYMid meet" (which is the default).

PS. The inline "style" you suggested is said to be deprecated, or discouraged, or whatever...
Well if you are preserving aspect ratio, there's no need for SVG at all. As for inline style, use a class instead. I just used the style attribute for brevity.
kovidgoyal is offline   Reply With Quote