In 2018, the Offender Database recorded that 60-year-old James Allan—a former school janitor from Lochgelly, Fife—was placed on the sex offenders register after being caught with “horrific” indecent images of children. Allan appeared at Kirkcaldy Sheriff Court having pleaded guilty to making indecent images of children. It was reported that the investigation established Allan was in possession of 30 unique abuse images, including Category A material depicting children as young as six engaged in sexual acts with adult males.
The investigation established that during a police raid on his home in August 2017, officers from the Cyber Crime Unit seized a computer unit containing an account in Allan’s name. The prosecution reported that one of the images recovered was particularly “disturbing,” as Allan had taken a photograph of a friend’s young daughter from Facebook and used editing software to superimpose her face onto the body of an adult female. Kirkcaldy Sheriff Court heard that Allan had also installed “system cleaning software” on the device, which had been used just two days prior to the police raid in an attempt to destroy evidence.
Judicial Findings and Investigative Detail
The court reported that Allan’s position as a school janitor at the time of the initial investigation added a significant layer of concern regarding his proximity to children. The investigation established that while he no longer works at the educational facility, the remaining images on his device featured girls estimated to be between the ages of 12 and 14. The prosecution reported that the Cyber Crime Unit’s intelligence-led operation was essential in identifying the home address in Lochgelly where the illegal material was being accessed.
Judge-led proceedings at Kirkcaldy Sheriff Court concluded with Sheriff Jamie Gilchrist QC deferring the final sentence for background reports. For his actions in Lochgelly and the “predatory manipulation” of a friend’s child’s image, Allan was placed on the sex offenders register on an interim basis. The judge noted that the combination of Category A material and the “deliberate use” of cleaning software to evade detection indicated a high level of forensic awareness and a persistent interest in prohibited content.
Status and Statutory Requirements
For the records reported in Fife and Lochgelly, the status of James Allan as of April 9, 2026, was as follows:
- Custodial Status: RELEASED (Sentenced late 2018; served custodial or community-based term; currently under supervision or completed sentence).
- Professional Status: FORMER SCHOOL JANITOR (Barred from all educational and childcare settings).
- Sex Offenders Register: Notification requirements are active for a period determined by the final sentence (likely 5 to 10 years).
- SHPO Status: Subject to a Sexual Harm Prevention Order (Including strict digital monitoring and a ban on using image-editing software).
- DBS/PVG Status: Placed on the Barring List (Indefinite ban on working with children in Scotland).
- Legal Status: CONVICTED (Making indecent images of children).
- Judicial Oversight: Sentenced at Kirkcaldy Sheriff Court; investigated by Police Scotland Cyber Crime Unit.
- Criminal Record: Janitor found with Category A abuse images; Edited a friend’s child’s face onto adult material; Used forensic “wiping” software to hide evidence.
- Origin: Lochgelly, Fife.
Monitoring and Public Protection
Allan is managed as a registered sex offender within the Fife area under the Multi-Agency Public Protection Arrangements (MAPPA). Due to the nature of his conduct—specifically his “history of working in a school” and his “technological manipulation of a known child’s image”—his management is a priority for the Police Scotland Offender Management Unit. Authorities state that his use of cleaning software identifies him as an individual who requires the most intensive tier of unannounced digital inspections to ensure he is not continuing to access abuse material.
As a registered sex offender, the 68-year-old’s details are permanently logged on the national police database. Authorities state that his notification requirements are a vital tool to ensure he does not seek further employment or voluntary roles that provide access to children. Any change of residence in Lochgelly or elsewhere, any attempt to contact the family of the child whose image he manipulated, or any unauthorised use of digital devices will result in immediate arrest to ensure the ongoing safety of the public from a man who demonstrated a persistent and “calculating intent” to exploit children.
QUESTION – Given that the offender was a “school janitor” who used software to hide his evidence, do you believe that “Forensic Evasion” should be a mandatory aggravating factor that doubles the prison sentence for all imagery offences?
If you or anyone you know has been affected by the individuals highlighted on this website, please report them to the Police on 101 (999 in an emergency) or visit their online resources for further details on reporting a crime. You can also report to Crimestoppers if you wish to remain completely anonymous. There is help available on our support links page.

