The court also heard that Grundy had been convicted of 21 offences in 2012 of making indecent images of children, and that he must register any change of name or address.
Tom Rushbrooke, for Grundy, said he had been at a particularly low point at the time of the first offences, having problems with alcohol.
He added: “While he was in Spain he had no access to computers at all.”
He had also “slipped through the net” over a programme for sexual offenders that was part of the community order he received in 2012.
The Recorder of Bradford, Judge Jonathan Durham Hall QC, warned Grundy there was a victim behind every one of images he made, which he described as “disgraceful material”.
He added: “The running away to Spain, on the one hand was reprehensible, but on the other hand, it seems you have used that time to resolve many issues.”
Grundy was also ordered to carry out 250 hours of unpaid work and complete the sexual offenders programme he missed out on previously.
He was also made subject to a sexual offences prevention order and a notification order, both for seven years.