I use:
Quote:
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100%" viewBox="0 0 779 1200" preserveAspectRatio="xMidYMid meet">
<image width="779" height="1200" xlink:href="../images/cover.jpg"/>
</svg>
|
The numbers have to be changed to the width and height of the image.
That will fill the screen without changing the aspect ratio if the image is larger than the screen. And smaller images will be shown centred on the screen at their natural size.