A Tunisian court has convicted the head of a private TV station for disrupting public order and violating moral values by airing an animated film that some religious leaders say insults Islam.

The court in Tunis ordered Nabil Karoui to pay a 2,400 dinar (£964) fine because his station, Nessma TV, aired the animated film Persepolis in October.

The case has pitted liberals and defenders of media freedom against hardline Islamic groups who say that the film, which includes a depiction of God, is sacrilegious. The legal battle has underscored a struggle between secularists and Islamists in the north African country after its longtime dictator, Zine al-Abidine Ben Ali, was overthrown last year in the first Arab spring uprising.

In its ruling on Thursday, the court convicted Karoui of causing "troubles to the public order" and "offence to good morals" but threw out a charge of "offence against a sacred item", according to defence lawyer Abada Kefi.

The lawyer said he would appeal against the verdict.

Karoui called the ruling a negative signal that "strikes a blow not only at freedom of expression, but creative freedom".

"You can't be half-guilty and half-innocent," added Karoui, who said he feared the ruling's impact in other north African countries. The network is also aired in Algeria, Libya and Morocco.

Troops were deployed to separate rival protests over the film during the trial last month. Several hundred hardline Islamists, known as Salafists, called for the TV station to be shut down, while a similar number of liberals backed Karoui.

The French-language movie, which had earlier appeared in Tunisian cinemas with little complaint, was broadcast in October dubbed into a Tunisian dialect before elections which were won by the moderate Islamist Ennahda party.

The broadcast prompted angry demonstrations and Karoui's home was later firebombed.

The film is Iranian director Marjane Satrapi's adaptation of her graphic novel about growing up during Iran's 1979 Islamic revolution. It won the jury prize at the 2007 Cannes film festival.