Maniphest T80421

Python API : Wrong color space with bpy.ops.image.save_as()
Closed, Archived

Assigned To
Richard Antalik (ISS)
Authored By
Léo Depoix (PiloeGAO)
Sep 3 2020, 9:33 AM
Tags
  • BF Blender
Subscribers
Léo Depoix (PiloeGAO)
Richard Antalik (ISS)

Description

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: Quadro M4000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.70

Blender Version
Broken: version: 2.83.5, branch: master, commit date: 2020-08-19 06:07, hash: rBc2b144df395f
Worked: I don't know

Short description of error
I'm trying to make a bash script that bake a normal map from a texture but the output image as a wrong color space (as PNG).
I also tryed to export as EXR but the output image is always corrupted.

Final exported normal map (with wrong colors):

You can find more informations on the devtalk thread: Devtalk > Python API: baking normal map save wrong color space on export

Exact steps for others to reproduce the error
From Blender:

  1. Extract the attached archive in an empty directory
  2. Open the "normal_bake_scene.blend" file
  3. Start the python script from python script editor
  4. Look at "ouput_normal.png" file when the processing is done

From command line:

  1. Add your correct blender executable path in the start_blender.bat file
  2. Launch it
  3. Look at "ouput_normal.png" file when the processing is done

Event Timeline

Léo Depoix (PiloeGAO) created this task.Sep 3 2020, 9:33 AM
Léo Depoix (PiloeGAO) added a comment.Sep 6 2020, 1:07 PM

After some experiments and tweeking this worked as expected in Blender 2.90.

Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Sep 9 2020, 12:43 AM
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).
In T80421#1010243, @leonumerique wrote:

After some experiments and tweeking this worked as expected in Blender 2.90.

Thanks for info. Does that mean that this issue was fixed?

Léo Depoix (PiloeGAO) added a comment.Sep 9 2020, 8:50 AM

Yes, you can close this issue.

Richard Antalik (ISS) closed this task as Archived.Sep 10 2020, 11:43 PM
Richard Antalik (ISS) claimed this task.