What was causing the problem?
The two images were being generated by Total CMS 3 and displayed inside a Foundation 6 Columns Pro stack.
Each image had the following classes applied:
class="stacks_in_58 m:16 rounding shadow"
The important class here is m:16, which applies a 16px margin to all four sides of the image.
Although Foundation 6 allows images to scale responsively to fit their parent container, the margins are additional to the width of the image itself.
This means that an image can be correctly scaled to 100% of its available container width but still extend beyond that container because of the additional margins.

