Page MenuHome

Blender always reverts to RGBA when using Save As Image
Closed, ResolvedPublic


System Information
Win 10, nVidia GTX 780 Ti

Blender Version
Broken: 2.78
Worked: (unsure, but I believe it worked in 2.77)

Short description of error
When saving a PNG image using "Save As Image", Blender will always revert to RGBA even if the image was created and/or previously saved as RGB,

Exact steps for others to reproduce the error

  • Load default scene
  • Go to Image Editor and create a new image; deselect the Alpha option
  • Save the image
  • Select "Save As Image". Note that the format is now set to RGBA.

Event Timeline

Sergey Sharybin (sergey) lowered the priority of this task from 90 to 50.

Caused by rB8b2a450.

@Bastien Montagne (mont29). mind having some check and do a final call here? :)

@Sergey Sharybin (sergey) the problem comes from BKE_imbuf_to_image_format() actually, which does weird magic to set planes based on buffer's channels, instead of using buffer's planes, see your own comment

Am terribly tempted to just replace that by mere planes copy…