View Single Post
Old 12-01-2013, 06:32 AM   #8
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,827
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by MacEachaidh View Post
Rubén, the version I had come across of the SVG wrapper is identical to yours, except that instead of
preserveAspectRatio="xMidYMid meet"
it says
preserveAspectRatio="none"

Nonetheless, it seems to work. What's the difference?
In this case, none because your cover has a ratio of 3:4 the same as your screen device so for that reason there is no distortion. But if you load that book in a reader with a 7" screen then you'll see that the cover showed with

preserveAspectRatio="xMidYMid meet"

is not distorted and the cover showed with

preserveAspectRatio="none"

it is

Please, read this chapter of SVG Essentials to understand the code you are using (of course, if you wish you can read all the online book

http://commons.oreilly.com/wiki/inde...ls/Coordinates

Regards
Rubén

PS: For the reasons you'll read there is that I recommend to use a SVG wrapper for the cover page.
RbnJrg is offline   Reply With Quote