HARRISBURG, Pa. -

Legislation that would make Pennsylvania the third state in the country to criminalize so-called "revenge porn" has cleared a key state panel.

The Senate Judiciary Committee unanimously voted Tuesday to send Pa. Sen. Judy Schwank’s Senate Bill 1167 to the floor.

The action came after the committee approved an amendment that changed the proposed grading of the offense in cases involving minor victims and excluded its application in cases that could be prosecuted under the state "sexting" law, which was enacted in 2012.

With the amended proposal, intimate partner harassment would carry a penalty of up to five years in prison and a $10,000 fine in cases involving victims who are minors and up to two years and $5,000 when the victim is an adult.

"It's an important step forward to protect people from having their lives and reputations injured or ruined by a bitter former intimate," said Schwank, a Berks County Democrat. "Posting these images has serious consequences for victims. It should, and under this proposal would, have serious consequences for an offender."

Under the bill, a person would commit the crime of intimate partner harassment by revealing, without consent, a picture or video of an intimate partner to a third party for no legitimate purpose and with the intent to harass, annoy or alarm the person depicted. The picture or video, Schwank said, must be of a person who is nude or engaged in a sexual act.

So far, New Jersey and California are the only states to adopt laws that make "revenge porn" a crime. Other states, including New York, Rhode Island and Delaware, are currently considering it, Schwank said.