I’m trying to convert images to PNG via code like this:
scene = bpy.context.scene
scene.render.image_settings.file_format = 'PNG'
image.save_render(tex_path_new, scene=scene)
But they end up being saved much darker than the original in 2.80. This code worked in 2.79 and the output had the correct brightness.
Here is how the textures look after being converted in 2.80: https://i.imgur.com/9r0V8jj.png
Is there any setting that I need to change to fix the brightness? Thanks!