Distance describes how far apart two points are, or describes something that is a long way away, for example "you can see the hills in the distance".
The men in the picture are making a fence with all the posts the same distance apart.
Size is a measure of how big something is. You can measure size in defined units like inches, or you can use descriptive words like big, small, tiny or huge.