Ian Nash, of Gordon Road, Wellingborough, appeared at Northampton Crown Court after pleading guilty to three counts of making and three counts of distributing indecent photographs online.
Caroline Bray, prosecuting, said police officers carried out a search warrant at his address on May 21, 2013 and found a library of indecent images on his computer.
After the computer was analysed, officers uncovered 710 category A indecent images of children and 203 videos. There were also 1,126 category B images and more than 12,700 category C images.
Ms Bray said many of the files involved babies and toddlers as well as one image where a child appeared to have been drugged.
The files had been placed on a software program that automatically shares the images with other users.
His Honour Judge Fowler sentenced Nash to 27 months in prison. He is likely to serve half in jail before being released on licence.
He will be on the sex offenders register for at least 10 years.