A Tanzanian portrait artist, who was accused of burning a photo of President Samia Suluhu Hassan, has been sentenced to two years in prison or a fine of $2,000 (£1,600) after being found guilty of cybercrimes.

Shadrack Chaula was arrested for allegedly recording a viral video, showing him burning a picture of President Hassan while verbally insulting her.

The 24-year-old painter admitted committing the crime and failed to defend his action in court.

His arrest sparked legal controversy, with some lawyers saying that no law was broken in burning the picture.

Some social media users have started an online drive to raise money to pay Chaula’s fine so he can be freed from jail.

In 2018, Tanzania enacted tough laws against the spread of “fake news”, which critics see as a way of curbing freedom of expression.