Web or print?

If you’re building it for web, the easiest way is to size everything as a percentage of screen width. When exporting the actual image you upload, you’ll want to export to the percentage of your largest screen size.

Eg: Image width is 50% of screen width, upper limit for width of most screens is 1920px (High Screen Resolution Statistics), uploaded image should be 1920*0.5=960px minimum.