I'm very new to blender, I have imported a mesh into blender with vertex colors and I can see the colors appear in the blender screen and the camera view, however when i save the image it appears to have lost all color information.
The code I'm using to capture images is
bpy.context.scene.render.filepath = "/home/josyula/Programs/blender/img.jpg"
bpy.context.scene.render.image_settings.file_format='JPEG'
bpy.ops.render.render(use_viewport = True, write_still=True)
I have attached the images of rendering screen and the saved image
Link to the blender file https://drive.google.com/file/d/1asN-aypVgeKlIknQs20ApAJ0clVc-TSR/view?usp=sharing