SAN FRANCISCO — The command from city officials to residents was simple: Put your clothes back on.