The short answer
A long hall may consist of several short wall sections rather than one uninterrupted gallery surface. Notice which areas are visible between doorways and whether one section naturally belongs to an artwork. You do not have to fill every gap or repeat the same image size. A meaningful single picture can provide focus while the door rhythm remains part of the architecture. Walk the corridor with a paper placeholder in a few positions to see what feels coherent. Do not obstruct door swings, accessible controls or normal circulation for the sake of visual symmetry.
What to consider
Count the wall sections between doorways rather than judging the hall as one long strip. A single photograph of a meaningful place can sit within one visible pause and let doorframes supply the rhythm; several pictures of equal size are not mandatory. Walk both ways with the doors in ordinary open positions and ask where the image would be noticed without restricting access or making every panel feel crowded.
A symmetrical row that spans door openings in a digital collage may look coherent but fail as soon as one door swings outward. FAQ 0271 narrows the issue to the suitability of one isolated section, and the Canvas article discusses grouped pictures near doors more broadly. Never recommend covering exit routes, switches or fire equipment. The exact width, hardware and safety of a real Canvas format remain unverified, as do rights to inhabited hallway photographs.