Is it possible to save depth values and rendered image in different formats? I render rgb images and depth maps for a series of frames in blender.  For depth, I actually need to store the float values as such, so that I can read them off directly in a python file later.  For that, I wish to use the exr format ( tried png earlier, but the normalization messed up the depth values)
However, I would like to store the rgb images as png.
I have noticed that the output format that is set in output properties is maintained for storing the Z-pass and images as well.
Is there anyway I can have different formats for the two? A solution involving blender's python API is also fine.
The Composite output node in the compositor will use the File Format and Color Management set in the properties window.
If you add a file output node it will allow you to save the image as an additional file with a different format or in a different path.
Set the file type to OpenEXR multilayer. Whenever you save as EXR the file will bypass the color management transforms, and remain linear float. You can add inputs/layers using the + Add Input button for depth or whatever other passes you need.