Mayer was jailed for 12 months and was placed on the Sex Offenders Register for 10 years.
Solicitor Pat Campbell, defending, said his client “continues to assert he is not guilty of the offence but accepts the verdict of the jury”.
Mr Campbell said his client had recently been forced to reject an offer from film producers who were keen to dramatise one of his books.
Mayer is author of the Parliament House series of crime novels that feature the character Brogan McLane QC who fights against injustice.
An online biography states he studied Law at the University of Edinburgh before becoming an Advocate in the Supreme Courts of Scotland.
He told the jury at his trial he had acted in High Court trials, worked with the International Criminal Court at The Hague and had specialised in fighting international child abuse and abduction.
The trial heard from forensic computer analyst David McGowan who was working with Police Scotland as a cyber crime officer at the time of Mayer’s arrest on January 28, 2021.
He said the images showed children aged between one and 14 being “subjected to sexual posing and non-penetrative sexual activity with other children and adults”.
Mr McGowan said he also found more serious images depicting children engaged in “penetrative sexual activity with other children and adults”.
Mayer claimed he had never seen the child abuse images on his laptop. But the jury rejected his claims and found him guilty by majority of two charges of possessing indecent images of children.