Window resize - full screen image : keep image proportions

Astrid shared this problem 1 year ago
Solved

Hi there,


I would like to create a full screen background image where:

- the width equals the window width

- height equals the window height


Is there a way to keep the proportions of the image (so it's not distorted) -> a section of the image will be masked in order to keep the same proportion throughout all window widths and heights?


Here is an example http://xgio.net/vattaric/


Is this doable?


Many thanks,

Astrid