Skip to content

Commit 4d06e2d

Browse files
authored
iv: Assume iv display gamma 2.2 (#4118)
A better default for users is probably to assume a 2.2 value if the GAMMA env variable is not set. If you want something different, set GAMMA proactively or use a real color managed workflow. Fixes #318 Signed-off-by: Larry Gritz <[email protected]>
1 parent 0edeccd commit 4d06e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iv/imageviewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ImageViewer::ImageViewer(bool use_ocio, const std::string& image_color_space,
118118
{
119119
readSettings(false);
120120

121-
float gam = Strutil::stof(Sysutil::getenv("GAMMA"));
121+
float gam = Strutil::stof(Sysutil::getenv("GAMMA", "2.2"));
122122
if (gam >= 0.1 && gam <= 5)
123123
m_default_gamma = gam;
124124
// FIXME -- would be nice to have a more nuanced approach to display

0 commit comments

Comments
 (0)