How to set the image size ad px, upfront, responsive ,mobile 315px, default 1080px

Dear Sir,
How to set the image size ad px, upfront, responsive ,mobile 315px, default 1080px
the image should set to what size?
Is the upfront can make change the image size or the image could change the size or px?

Thanks!