SACRAMENTO, Calif. -- SACRAMENTO, Calif. (AP) — California Gov. Jerry Brown on Tuesday signed a bill outlawing so-called revenge porn and levying possible jail time for people who post naked photos of their exes after bitter breakups.

Senate Bill 255, which takes effect immediately, makes it a misdemeanor to post identifiable nude pictures of someone else online without permission with the intent to cause emotional distress or humiliation. The penalty is up to six months in jail and a $1,000 fine.

"Until now, there was no tool for law enforcement to protect victims," the bill's author, Sen. Anthony Cannella, said in a statement. "Too many have had their lives upended because of an action of another that they trusted."

Cannella, a Republican from Ceres, has said revenge porn is a growing problem in the age of social media, when photos and videos that were made privately during a relationship can find their way onto hundreds of websites.

Before the criminal law was enacted, California allowed victims to sue their virtual assailants, but that is an expensive and time-consuming option.

The American Civil Liberties Union had opposed the bill, arguing it might restrict free speech rights, which has been a concern in other states as well.

Florida lawmakers rejected a similar bill this year after First Amendment concerns surfaced there. Last year, the Missouri Supreme Court cited concerns about free speech in striking down part of a 2008 law enacted after a teenager who was teased online committed suicide.

Also on HuffPost:

Loading Slideshow...
  • Fed Up

    <strong>January 2013:</strong> Mississippi state Reps. Jeff Smith (R), pictured, and Gary Chism (R) <a href="" target="_blank">proposed legislation</a> that would create a committee whose sole purpose is to nullify federal laws the state does not want to follow. The bill fell in committee in <a href="" target="_blank">early February</a>.

  • Bye Bye, Health Care

    <strong>January 2013:</strong> Nebraska State Sen. Jeremy Nordquist (D) proposed a bill that would <a href="" target="_blank">end all state health care benefits</a> for elected officials -- including the governor.

  • Senator Shrugged

    <strong>February 2013:</strong> Idaho state <a href="" target="_blank">Sen. John Goedde</a> (R) introduced legislation that would require every high school student in Idaho to read Ayn Rand's <em>Atlas Shrugged</em> -- a novel associated with conservatism and the tea party movement.

  • Ban This Ban

    <strong>February 2013:</strong> Wyoming Rep. Kendell Kroeker, (R), seated at left, introduced legislation that would make it illegal to enforce a federal ban on assault weapons and high-capacity magazines in his state. The bill, geared at the federal gun reform legislation spearheaded by Vice President Joe Biden, would have made agents enforcing federal guns subject to a $50,000 fine and up to five years in prison. As of Feb. 22, <a href="" target="_blank">Open States notes</a> that the bill was placed on general file, which is defined by the <a href="" target="_blank">Wyoming State Legislature</a> as on "a list of bills that are awaiting further action by the entire membership of the House or Senate sitting as the Committee of the Whole"

  • Making Bank

    <strong>February 2013:</strong> The Virginia House of Delegates advanced legislation that could potentially lead to <a href="" target="_blank">state-issued currency</a> -- meaning Virginians would have their own special money. Two weeks after the House passed it, the bill fell in the <a href="" target="_blank">state Senate</a>.

  • Human-Animal What?!

    <strong>February 2013:</strong> Mississippi state Rep. William Tracy Arnold (R) proposed a ban on <a href="" target="_blank">human-animal hybrids</a>. The ban was included to restrict the research done on embryos, Arnold said, and is part of a larger measure that would restrict abortion, human cloning and assisted suicide. According to <a href="" target="_blank">Open States</a>, the bill fell on Feb. 5 in committee.

  • Stripped Down

    <strong>March 2013:</strong> Kansas state legislators discussed a bill that would have effectively <a href="" target="_blank">banned strip clubs</a> and lap dances in the state. The original bill went into graphic detail about what would and would not be allowed in gentleman's clubs and would outlaw lap dances, but was eventually struck down by a legislative committee.

  • Concealed Carry In The Capitol?

    <strong>March 2013:</strong> The <a href="" target="_blank">Kansas State House of Representatives</a> voted in March to allow <em>concealed carry</em> of guns in the state Capitol building. The bill was proposed by Rep. John Wilson (D), who said that though he doesn't support the legislation he sees it as an "inconsistancy" with other laws allowing concealed carry in schools, hospitals and other public buildings. The state's <a href="" target="_blank">House and Senate</a> passed the measure in March, and <a href="" target="_blank">Gov. Sam Brownback (R)</a> signed it in mid-April.

  • One Religion, Under God

    <strong>April 2013:</strong> North Carolina state Republicans proposed a bill that would allow the state to declare an <a href="" target="_blank">official religion</a>. The bill claimed that the First Amendment, separating church and state, only applies to the federal government. The bill was ultimately <a href="" target="_blank">struck down</a> by North Carolina House Speaker Thom Tillis (R), pictured.

  • Unsustainable

    <strong>April 2013:</strong> Agenda 21, the United Nations' strategic action plan for sustainable development, sounds like a good thing, right? According to <a href="" target="_blank">Missouri state lawmakers</a>, far from it. The Missouri House of Representatives voted in April to ban Agenda 21, with opponent Rep. Scott Fitzpatrick (R) viewing it as a "conspiracy theory" that could affect zoning laws, seize private property and dictate the future of agriculture.

  • Wow

    <strong>April 2013:</strong> Washington state Sen. <a href="" target="_blank">Sharon Brown</a> (R) proposed a <a href="" target="_blank">bill</a> that would allow businesses in her state to deny service to gay, lesbian, bisexual and transgendered customers on the grounds of religious differences.