The photo source as a single frame height pixels tall. ffmpeg decodes it as it does a video, upright and through the same scaling, so everything after this stage is the same.
ffmpeg