Q&A: Image sizes

What's the right size to post an image — for desktop and smartphones?