Doesn't seem so difficult? make it illegal to produce and distribute nude images of people without their consent. Enforcement can't be perfect, but neither are csam or revenge porn laws.
Very shortly you don't need to distribute the "nude" image though. The reference images just needs to be public with a one click way to get the tranformed result.
If we really shorten that, it could all fit into an url with a parameter pointing to the original, and nobody's distributing a specific image, they're all privately generated.
If we really shorten that, it could all fit into an url with a parameter pointing to the original, and nobody's distributing a specific image, they're all privately generated.