Two Reuters journalists sentenced to seven years in a Myanmar prison have been freed.

The reporters were released after Myanmar President Win Myint issued a blanket pardon for 6,520 prisoners, according to the prison chief.

Wa Lone, 32, and Kyaw Soe Oo, 28, were first arrested in December 2017 and sentenced last September after being accused of obtaining secret government documents -- a violation of Myanmar's Official Secrets Act.

The two journalists said they were framed by police over their reporting on violence against Rohingya Muslims.

Myanmar's Supreme Court on April 23 rejected the journalists' final appeal against their seven-year prison terms.

Myanmar's military launched a brutal counterinsurgency campaign in the western state of Rakhine in August 2017, sending more than 700,000 Rohingya fleeing across the border to Bangladesh and triggered criticism worldwide.