I just recalled another picture where all thr Beatles are wearing sun glasses: on the back cover of the REVOLVER album (vinyl). It looks as it was taken in the EMI studios.
That style of glasses was referred to as "granny glasses".
John adopted them for his character Private Gripweed in Richard Lester's "How I Won the War" (1966) and liked them so much so he kept wearing them.