Hewlett-Packard Co. said it would sell its Snapfish photo-sharing site to District Photo, part of the computer maker’s plan to refocus operations as it splits in two. Snapfish works with retailers to help consumers store, share and print photos online. District Photo, which is based in Beltsville, Maryland, handles digital printing for business and other customers. Meg Whitman, Hewlett-Packard’s chief executive officer, told shareholders last month that the Palo Alto, California-based company was on track to divide around Nov. 1 to become more responsive to corporate customers.