When a Playboy model shamed a nude gym-goer, she couldn't foresee its ramifications.

It was the image Dani Mathers couldn’t “unsee” and it’s been haunting her ever since.

Now, the Playboy model has been convicted after secretly taking the photo of a 71-year-old naked woman in a Los Angeles gym changeroom and sharing it on Snapchat, TMZ reports.

The 30-year-old pleaded no contest to the misdemeanour invasion of privacy in an LA court on Wednesday. She was sentenced to 45 days in jail or 30 days of community service removing graffiti.

Listen: It’s risky business. The law hasn’t caught up with technology when it comes to nude selfies. Post continues… 

The playmate’s lawyer, Dana Cole, said she would do the community service.

Mathers’ conviction comes after she pleaded not guilty in November 2016 following her arrest. Her legal team’s attempts to have the charges dismissed failed.

Mathers faced the furore of the internet when it emerged she had snapped and publicly shared a photo of a fellow gym-goer nude at LA Fitness club in July last year.

“If I can’t unsee this then you can’t either,” she captioned the image.

Part of Mathers plea deal is a three-year probation and the stipulation that she cannot take photos of people and post them online without their permission, TMZ reports.

The model has previously apologised for the incident on Twitter and in an online video.

"I’m sorry for what I did ... I need to take some time to myself now to reflect on why I did this horrible thing," she tweeted in the face of backlash.

She said she knew what she did was "wrong" in an online video.

"That was absolutely wrong and not what I meant to do," Mathers said.

"I know that body-shaming is wrong. That is not the type of person I am."

The victim has not been identified and it is not yet known if she will sue the model for damages.