An Egyptian appeals court Saturday reduced jail sentences given to eight men over a gay wedding video that went viral on the Internet to one year each, from three years.
Their arrests in September were part of a series of highly publicised raids targeting suspected homosexuals in the conservative country.
A lower court convicted them in November of broadcasting images that "violated public decency".
The men were detained after a video, filmed aboard a Nile riverboat, showed what prosecutors said was a gay wedding ceremony, with two men kissing, exchanging rings and cutting a cake with their picture on it.
The video received widespread attention on websites such as Facebook, Twitter and YouTube.
The defendants' families, who were expecting their acquittal, screamed and wept on hearing the new sentences, according to an AFP reporter.
Homosexuality is not specifically banned under Egyptian law and the men were initially accused of debauchery.
That charge was dropped after an invasive anal exam of the men showed that they did not have receptive anal sex.
The defence repeatedly denied that the men were gay, and insisted that the lower court had caved in to popular pressure.
One of the defendants told a television talk show prior to their arrest that the video was recorded during a birthday party.
In the past, Egyptian homosexuals have been jailed on charges ranging from "scorning religion" to "sexual practices contrary to Islam," the country's dominant religion.
In April, a court sentenced four men accused of homosexuality to up to eight years in prison.