The shocking gang-rape of a German tourist in Vienna on New Year’s Eve has ended with guilty verdicts for eight Iraqi asylum seekers.

A ninth suspect was acquitted.

The vile attack heightened simmering tensions between Austrians and the tidal wave of immigrants flooding over its borders.

The rapists — all but one admitted having sex with the victim but said it was consensual — have been hammered with prison terms of between nine and 13 years.

Both sides have said they will appeal.

On Dec. 31, 2015, the 28-year-old tourist was partying with friends in the Austrian capital when she became intoxicated.

She was taken by four of the men to a nearby apartment and they and four others took turns raping her.

The attack has sent waves of panic among immigrant communities who expressed concern that the crime will make Austrians hostile toward all newcomers.

“Eight people raping a woman — that’s honour-less! Such a thing doesn’t exist in our religion,” said Turkish immigrant Burhan Akbas.

“When such people come here and screw up like that, then everybody will think that Chechens, Afghans — all refugees from war areas — are all the same,” Mansur Salamou, an asylum-seeker from Chechnya, said.

The nine Iraqi men — ranging in age from 22 to 48 — came to the Alpine nation as migrants between May and December 2015.

Five were later given refugee status.

Defence lawyer Andreas Reichenbach said the gang rape was committed around the same time as the high-profile sexual assaults in Cologne by gangs of migrants. He said the sentences were clearly targeted at asylum seekers.

“As we all know, asylum-seekers don’t have the best image here in Austria,” he said. “I think that this surely played a certain role, to make it clear to these people that when they come to Austria that such behaviour won’t be tolerated.”

The prosecution shot down the notion the idea the sex was consensual given that the woman was so blotto she was “unconscious, shock-rigid.”

— With files from the Associated Press