Fix #155861: Crash rendering CMYK JPEG textures in Cycles

The OpenImageIO version we use has broken CMYK to RGB conversion in
JPEG, this is a temporary workaround until we upgrade to a newer
version. Directly read the CMYK image with libjpeg.

Note that when we upgrade, we can remove the CMYK conversion code
entirely as OpenImageIO supports this natively nowadays.

Pull Request: https://projects.blender.org/blender/blender/pulls/155946
This commit is contained in:
Brecht Van Lommel 2026-03-23 10:33:24 +01:00 • committed by Brecht Van Lommel
parent ce360dd480
commit 7ef18aca68
11 changed files with 104 additions and 24 deletions

View file

@ -61,6 +61,8 @@ BLOCKLIST_OSL_ALL = BLOCKLIST_OSL_LIMITED + [
'image_log.blend',
'image_non_color.blend',
'image_mapping_udim.blend',
# Temporary workaround for bug in OpenImageIO, to be removed when texture cache lands.
"image_cmyk_jpeg.blend",
# Tests that need investigating into why they're failing:
# Noise differences due to Principled BSDF mixing/layering used in some of these scenes
'render_passes_.*.blend',