Anyone who shares intimate images of someone without their permission could face up to three years in prison after legislation passed state parliament on Tuesday.

The Criminal Law Amendment (Intimate Images) Bill makes ‘revenge porn’ a crime, which attracts jail time of either 18 months or three years and/or a fine of up to $18,000.

Revenge porn legislation has passed in the WA Parliament. Credit:iStock

The laws will come into effect on April 15, 2019.

A recent RMIT online survey of more than 4200 people aged 16 to 49 found nearly nine per cent of people had taken a nude or sexual photo or video of someone else without their consent, while more than six per cent had shared or distributed one.