CONVICTED paedophile David Fitzmaurice shocked library users when surfing the internet for child pornography.
The 51-year-old was jailed for 15 months after admitting two counts of making an indecent photograph of a child under 13, along with two charges of possessing nearly 100 indecent photographs of children.
Judge Jamie Tabor QC ignored sentencing guidelines and sent Fitzmaurice to jail after Gloucester Crown Court heard his history of child sexual offences dated back to 1978.
Fitzmaurice was looking at the images in Gloucester Library just two days after being released from Ryecroft probation hostel.
Prosecutor Christopher Smythe said he was seen by members of the public and asked to leave by staff on September 12, 2012.
Police were called and his internet history checked, which exposed the photographs. A search of his Arthur Street home found a memory stick with further images.
Mr Smythe said Fitzmaurice was still on licence for a previous offence in April 2003, which he had breached before.
Defending, Dermot Clarke said: "There are some changes and you will see this is not a man that has committed any other crime whatsoever. No matter how vile that is these are for his own personal gratification and it appears there has been a change of attitude and he was more candid than ever before."
The court heard if Fitzmaurice had been subject to a Sexual Offences Prevention Order (SOPO) which has come into force since his sentence in 2003, he could have faced up to five years in jail.
Judge Tabor said: "In this case I cannot follow the guidelines of a non-custodial sentence as I would be failing in my public duty."
The judge also imposed an indefinite SOPO.