A maths teacher with a fetish for boys wearing footballs kits downloaded more than 14,000 indecent images of children, a court heard.
Jonathan Craven, 47, a teacher at Batley Business and Enterprise College, was banned from taking pictures of children at sporting events after he was given a suspended prison sentence.
A court heard Craven also allowed other people to access his collection of illegal images.
Police officers executed a search warrant at his home on Laburnam Road, Dewsbury, in April this year and seized computer equipment.
David Mackay, prosecuting, said a total of 872 movies and 571 images were at level A - the most serious category of offending.
Mr Mackay said it appeared Craven had an attraction to images of boys wearing football kits.
The images were downloaded between June 2013 and the time of his arrest.
Craven was arrested and refused to comment. He later pleaded guilty to 24 offences of making indecent images of children.
Mark Brooks, mitigaing, said Craven’s teaching career was ruined as a result of the convictions.
He said his client was sorry for his offending and had referred himself to a programme designed to address his behaviour.
Mr Brooks said Craven had been a single man all his life and had now sold his home and moved to live with his parents. He added that Craven was ashamed of the embarrassment he had caused his family.
Craven was given a 12 month prison sentence, suspended for two years, and ordered to attend a offenders treatment programme.
He was also made the subject of a sexual offences prevention order banning him from filming or photographing children under 16 at any sporting event.