Saving image from image editor resets Image Texture color space #74610
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#74610
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 441.87
Blender Version
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-02-12 16:20, hash:
77d23b0bd7
Worked: (optional)
Short description of error
The bug originally reported here https://developer.blender.org/T74284 which has been irresponsibly ignored has even more dangerous side effects. When using Blender's image editor to edit and save images, each time image is saved, Image Texture node color space is reset.
Exact steps for others to reproduce the error
Result: Color Space of the loaded texture gets reset to sRGB
Expected: Color Space never changes once set up by user.
This issue make it impossible to reliably use any non sRGB image data authored by Blender in Blender.
Added subscriber: @Rawalanche
Added subscriber: @rjg
This comment was removed by @rjg
This comment was removed by @rjg
How can you decide color space of the data just based on the image container format? For example PNG image can contain diffuse color map or normal map. Both require reading the PNG different format using different colorspace. There is simply no reliable way to automatically decide what the loaded image file contains just based on the format.
@Rawalanche You can (and should) set the color space to Non-Color for normal maps. I've tested that this setting isn't changed by saving the image.
Why should non-color be one specific settings that behaves differently to others, and why should non-color not change when re-saving loaded file but change when another file is selected as image texture sources? This is a horrible minefield or random, under the hood exceptions.
This comment was removed by @rjg
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @brecht
It simply should not change the colorspace in this case. There are some cases where it should (e.g. saving OpenEXR as PNG with view transform applied), but this is not one of them.
Added subscriber: @ManuelGrad
@rjg Since when are .png sRGB only?
It stores RGB values and how to interpret is not up to the container format as far as i know, no?
@ManuelGrad It seems that you're right, the png format defines iCCP chunks that would allow to use an embedded ICC profile. Although the sRGB chunk is the most common way of storing the data. Sorry for causing any confusion, I'm currently a bit ill and not quite up to speed.
Added subscriber: @fatboyzzfatboyzz
I confirm this bug in blender 3.1.2.
Happens when saving baked texture.
Saving .png file with texture node 'Color Space' set to 'Linear'.
Result in changing the 'Linear' automaticlly to 'sRGB'.
Color looks correct in 'sRGB' but wrong when change back to 'Linear'.
Saving .exr file won't change 'Color Space' automaticlly and everything works fine.
The result color of '.png + srgb' is same as '.exr + linear'.
Seems no way to save linear texture to .png.
Also note this bug happens after texture bake.
I tested by using same source texture then bake to both .png and .exr.
If you simply open a .png set to 'Linear' then save, blender won't change 'Color Space' automaticlly.
Added subscriber: @EAW
This issue was referenced by
5baa3ecda6
Changed status from 'Confirmed' to: 'Resolved'
This will be fixed in 3.3, since it involves a deeper change that is too risky for 3.2.