Public library illustration By: Feng Qian

A man was arrested, charged and convicted of possessing child pornography after being seen looking at child pornography at a public library, prosecutors in California said.

The Los Angeles County District Attorney’s Office announced that 49-year-old Kirk Brian Eggleston of Glendora, was sentenced to 13 years and four months in state prison.

Eggleston was found guilty by a jury of two felony counts, possession of child pornography and attempted child pornography.

Additionally, the defendant admitted that he was previously convicted of lewd and lascivious acts with a child under 14, child molestation and indecent exposure.

Los Angeles County Superior Court Judge Juan Carlos Dominguez also ordered Eggleston to register as a sex offender for life.

Deputy District Attorney Lauren Guber, who prosecuted the case, said that Eggleston went to the Glendora Public Library, sat down at a computer and began to view images of young girls in underwear and bathing suits.

Library staff noticed the defendant looking at images of seminude young girls and called police, the

prosecutor said.

Authorities arrived and also saw Eggleston looking at the inappropriate pictures.

Police officers testified during the trial that they found search terms used to find child pornography images on the library computer.

They also discovered images that were consistent with the terms.