GNOME Bugzilla – Bug 675964
Compositing modes for on gamma-corrected data missing (for legacy support)
Last modified: 2014-02-24 22:05:56 UTC
All the current compositing modes operate in linear light (for good reasons). However, to correctly render legacy files (OpenRaster and XCF) we also need operations that operate on gamma-corrected data. The operations should at least cover the blending modes used by GIMP 2.8. This should be a superset of the ones specified in OpenRaster and used by MyPaint 1.0
Øyvind said on IRC that this should be done by extending the code generation we already do in operations/generated to produce new operations for the sRGB case with the suffix -srgb in the name.
Adding a property has worked well for gimp and is less duplicate code for now, may revisit the naming issue if the generators get rewritten at some point. commit 570ee3a4807bdd3138463b6ac96ef257cd13c34c Author: Daniel Sabo <DanielSabo@gmail.com> Date: Sat Oct 12 07:38:10 2013 -0700 operations: Add sRGB option to gegl:over commit 6cec4e4a60a5e80a08d2d5878c90dad574abbd2c Author: Daniel Sabo <DanielSabo@gmail.com> Date: Mon Oct 7 01:03:19 2013 -0700 operations: Add sRGB option to svg blends