It's a fairly common element of revenge porn laws in the states, and I think it is likely to survive review because it does not criminalize the content
as content, but the dissemination of it with the intent and effect of causing harm. The Oregon law being amended to add coverage of digital fakes criminalizes nonconsensual dissemination of images covered where both the intent exists that the subject of the images be "harassed, humiliated or injures"
and a reasonable person would, in fact, be "harassed, humiliated or injured" by the dissemination of the images.
And fake images are probably less protected than real images here, where, again, the prohibition is not on the content, but its use as a tool to cause intentional harm.