diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-24 05:13:13 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-24 05:13:13 +0400 |
commit | 904515814fda46b58defc21aa4f172849e5e86a9 (patch) | |
tree | f8ee653639d3439570c7cae5352bd62829992810 /source/blender/imbuf | |
parent | b859d1234088e0916b8a920bc6178fbe117f8e65 (diff) |
fix [#32626] TIFF renders are limited to 8 bit even when we choose 16.
this is a regression with color management, TIFF's were always being written as 8bit
however the float buffer is assumed to be linear when converting from float to 16bit pixels per channel, so support for color management might need to be added here.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/tiff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c index 932a4941a0a..2cb30b84a09 100644 --- a/source/blender/imbuf/intern/tiff.c +++ b/source/blender/imbuf/intern/tiff.c @@ -790,6 +790,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags) /* convert from float source */ float rgb[4]; + /* TODO - support color management */ linearrgb_to_srgb_v3_v3(rgb, &fromf[from_i]); rgb[3] = fromf[from_i + 3]; |