William was educated at Rossall School, the Royal Military Academy, Woolwich, and joined the Royal Engineers in 1861, with which he served in India for several years.
Sir William de Wiveleslie Abney was a specialist in the chemistry of photography, especially noted for his development of a photographic emulsion that he used to map the solar spectrum far into the infrared.