End-of-travel focus shift in an optical image scanner is provided. One embodiment is an optical image scanner comprising a platen, a stop member at a first end-of-travel position, and an optical head. The optical head comprises a ramped surface such that when the optical head engages the stop member the distance between the optical head and the platen is adjusted.