Quick Tip: 8-bit Images in ACES (Patreon)
Content
I often see confusion about how to use standard 8-bit JPG/PNG images in a color-managed OpenColorIO/ACES workflow. Let's clear things up!
When creating renders or doing compositing we often want to make use of 8-bit images/textures, such as pictures from the internet or a phone camera. ACES includes an input color space called Utility - sRGB - Texture which sounds like just the thing for this task. However, anyone trying this out for the first time will notice that the image appears much darker than expected
A common workaround is to use an output transform on the image to essentially "cancel out" color management on it. This makes the image look as expected, matching the brightness seen in any photo viewing app. Here's a comparison of sRGB texture and sRGB neutral, which in my custom OCIO config is the same as Utility - sRGB - Texture and Output - sRGB in standard ACES. (You can download my config here.) sRGB texture is too dark compared to the picture viewer reference, but sRGB neutral matches perfectly:
So why not just do this? Unfortunately, it massively distorts the underlying color values. All 8-bit images are bound to a range of 0 to 1, black to white. The original image here maxes out at pixel values of about 0.9 (see the color readout at the bottom of the GIF):
When using sRGB neutral the values are pushed way above 1:
This is a problem when it comes to doing math based on the values stored in the image. Values over 1 typically represent areas of extreme brightness. For example, if we recorded a bright summer sky with a film camera we'd expect the clouds and sun to register well over 1 since they are very bright. We can take advantage of this large dynamic range later on in the grading process by bringing down the brightness of the sky without losing any detail.
Should our sample image here be as bright as the sun? Probably not!
Keep in mind that this isn't necessarily an issue in all situations. If things are behaving correctly in general and they look like you want, go for it. However, especially in rendering, problems might arise when we use essentially incorrect color values like this. It could affect the behavior of light in the scene and lead to unintended side effects.
When rendering, I recommend using Utility - sRGB - Texture (or equivalent) for 8-bit textures. It's generally not relevant if the image is a bit darker and you'll have peace of mind knowing that all the values are within bounds.
When compositing or video editing, though, I often prefer the output transform technique. Most of the time you just want your 8-bit images to look like they do in your picture viewer apps with as little fuss as possible. There might be some edge cases where the compositing math doesn't work out with the too-bright colors, in which case you can revert to Utility - sRGB - Texture to keep the values in a normal range.