In my script I create an image, generate the image and then save it like this:
image = bpy.data.images.new('my_image', width=1024, height=1024)
# other code that generates the image by baking onto a texture node ...
image.filepath_raw = '//outputs/my_image.tif'
image.file_format = 'TIFF'
image.save()
But when saving the image I would like to have control over those options:
...which are available when saving from the user interface.