ESP32-CAM LED does not shut off between photos

If you put the sd card in to 1-bit mode this will stop it using the same gpio pin as the flash although sd card access will be slower.

see Using the SD Card in 1-Bit Mode on the ESP32-CAM from AI-Thinker – Dr. Mountain