Simply connecting the GND and a GPIO directly to the camera and using inverted logic does not work because the camera pulls its input high. If I put the GPIO to 0V this is not enough to stop the camera exposure. To stop it, I really need to shorten the input to ground. I solved this now by using a mosfet like so:
GPIO ------ mosfet gate ; Camera GND ----- mosfet source ---- GPIO GND ; mosfet drain --- camera trigger
if GPIO is HIGH, mosfet is conducting and shortens the cam trigger to ground. When I want to take a picture, I pull the gpio low for 1ms.
I think the trigger input would have to be floating for it to be possible to simply connect directly to the GPIO, which I guess would have downsides as well.