How to create background image that fit the screen size?

I know I can create a background image by creating a child plane entity of the camera, but I don’t know how much I should scale the plane to fit the screen…
What I want is just like the css property background-size: cover.