Saving an image makes it darker in 2.80?

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:

Is there any setting that I need to change to fix the brightness? Thanks!

save_render() will apply the view transform from the render settings, which is Filmic by default. Use save() instead.

1 Like

Ahh, thank you!
Using save() doesn’t work for me for some reason, but setting the view transform temporarily to “Standard” fixes it.