View Single Post
Old 12-19-2008, 02:35 PM   #8
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,560
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by kovidgoyal View Post
Just use <img style="height:100%"/> (see an EPUB file produced by a recent version of calibre for an example) for full screen images without svg. Using svg will cause scaling distortions for cover images that have an aspect ratio different from the viewing screen aspect ratio. Frankly, I'm amazed Adobe recommends scaling raster images via SVG
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...
Jellby is offline   Reply With Quote