Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 71 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
cmake_minimum_required(VERSION 3.24)
project(ThumbGen VERSION 0.1.2 LANGUAGES CXX)
project(ThumbGen VERSION 0.1.3 LANGUAGES CXX)

find_package(OpenImageIO 3.2 CONFIG REQUIRED)
find_package(OpenColorIO 2.5 CONFIG REQUIRED)
find_package(Imath CONFIG REQUIRED)
find_package(OpenEXR 3.5 CONFIG REQUIRED)
find_package(nlohmann_json 3.11 CONFIG REQUIRED)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(LittleCMS2 REQUIRED)
find_package(JPEG REQUIRED)
find_package(ZLIB REQUIRED)
find_package(TIFF 4.7 REQUIRED)
if(UNIX AND TARGET TIFF::tiff)
get_target_property(THUMBGEN_TIFF_TYPE TIFF::tiff TYPE)
if(THUMBGEN_TIFF_TYPE STREQUAL "STATIC_LIBRARY")
find_package(libdeflate CONFIG REQUIRED)
find_package(zstd CONFIG REQUIRED)
find_package(WebP CONFIG REQUIRED)
if(NOT TARGET Deflate::Deflate)
add_library(Deflate::Deflate ALIAS libdeflate::libdeflate_static)
endif()
if(NOT TARGET ZSTD::ZSTD)
add_library(ZSTD::ZSTD ALIAS zstd::libzstd_static)
endif()
if(NOT TARGET CMath::CMath)
add_library(CMath::CMath INTERFACE IMPORTED)
set_property(TARGET CMath::CMath PROPERTY INTERFACE_LINK_LIBRARIES m)
endif()
endif()
endif()
include(cmake/Skcms.cmake)
option(THUMBGEN_VERIFY_DEPENDENCY_VERSIONS "Require the versions used by the locked SDKs" OFF)
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/dependencies/versions.json" THUMBGEN_DEPENDENCY_LOCK)
Expand Down Expand Up @@ -46,8 +66,10 @@ file(READ "${CMAKE_CURRENT_SOURCE_DIR}/schemas/errors-v1.json" THUMBGEN_ERROR_RE
configure_file(src/error_registry.h.in generated/error_registry.h @ONLY)
set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/schemas/errors-v1.json")

add_library(thumbgen_core STATIC src/core.cpp src/colour_plan.cpp src/resize_srgb.cpp src/color_input.cpp src/cms_input.cpp src/cmyk_jpeg.cpp src/selection.cpp src/files.cpp src/quantize.cpp src/data_preview.cpp src/data_image.cpp src/selected_input.cpp src/cryptomatte.cpp src/sampled_id.cpp src/deep_flatten.cpp src/deep_reader.cpp src/deep_selection.cpp)
add_library(thumbgen_core STATIC src/core.cpp src/colour_plan.cpp src/resize_srgb.cpp src/color_input.cpp src/cms_input.cpp src/cmyk_jpeg.cpp src/jpeg_rows.cpp src/selection.cpp src/files.cpp src/quantize.cpp src/data_preview.cpp src/data_image.cpp src/selected_input.cpp src/cryptomatte.cpp src/sampled_id.cpp src/deep_flatten.cpp src/deep_reader.cpp src/deep_selection.cpp)
option(THUMBGEN_PNG_SCANLINE "Use bounded native PNG16 decode for eligible integer colour sources" ON)
target_sources(thumbgen_core PRIVATE src/exr_rows.cpp src/png_rows.cpp src/tiff_rows.cpp
src/other_rows.cpp src/hdr_rows.cpp src/dpx_rows.cpp src/bmp_rows.cpp src/webp_rows.cpp src/tga_rows.cpp)
if(THUMBGEN_PNG_SCANLINE)
target_compile_definitions(thumbgen_core PRIVATE THUMBGEN_PNG_SCANLINE=1)
endif()
Expand All @@ -56,8 +78,9 @@ target_include_directories(thumbgen_core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/incl
target_include_directories(thumbgen_core PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/generated)
target_link_libraries(thumbgen_core PUBLIC nlohmann_json::nlohmann_json PRIVATE OpenImageIO::OpenImageIO Imath::Imath OpenEXR::OpenEXRCore)
target_link_libraries(thumbgen_core PRIVATE LittleCMS2::LittleCMS2)
target_link_libraries(thumbgen_core PRIVATE OpenColorIO::OpenColorIO)
target_link_libraries(thumbgen_core PRIVATE JPEG::JPEG)
target_link_libraries(thumbgen_core PRIVATE ZLIB::ZLIB thumbgen_skcms)
target_link_libraries(thumbgen_core PRIVATE ZLIB::ZLIB TIFF::TIFF thumbgen_skcms)
if(WIN32)
get_filename_component(THUMBGEN_JPEG_PREFIX "${JPEG_INCLUDE_DIR}" DIRECTORY)
find_file(THUMBGEN_JPEG_RUNTIME NAMES jpeg8.dll libjpeg-8.dll jpeg62.dll PATHS "${THUMBGEN_JPEG_PREFIX}/bin" NO_DEFAULT_PATH REQUIRED)
Expand Down Expand Up @@ -98,15 +121,15 @@ if(THUMBGEN_EXR_NOZERO)
endif()
target_link_libraries(thumbgen PRIVATE thumbgen_runtime)
option(THUMBGEN_C2_PNG_STREAM "Opt-in exact incremental PNG with bounded buffer admission" OFF)
add_library(thumbgen_c2 STATIC src/c2_resize.cpp)
target_compile_features(thumbgen_c2 PRIVATE cxx_std_20)
if(MSVC)
target_compile_options(thumbgen_c2 PRIVATE /O2 /fp:precise /utf-8)
else()
target_compile_options(thumbgen_c2 PRIVATE -O2 -fno-fast-math -ffp-contract=off)
endif()
target_link_libraries(thumbgen_core PRIVATE thumbgen_c2)
if(THUMBGEN_C2_PNG_STREAM)
add_library(thumbgen_c2 STATIC src/c2_resize.cpp)
target_compile_features(thumbgen_c2 PRIVATE cxx_std_20)
if(MSVC)
target_compile_options(thumbgen_c2 PRIVATE /O2 /fp:precise /utf-8)
else()
target_compile_options(thumbgen_c2 PRIVATE -O2 -fno-fast-math -ffp-contract=off)
endif()
target_link_libraries(thumbgen_core PRIVATE thumbgen_c2)
target_compile_definitions(thumbgen_core PRIVATE THUMBGEN_C2_PNG_STREAM=1)
target_compile_definitions(thumbgen_runtime PRIVATE THUMBGEN_C2_PNG_STREAM=1)
endif()
Expand Down Expand Up @@ -188,6 +211,18 @@ if(THUMBGEN_REQUIRE_FULL_TESTS)
endif()
endif()
if(BUILD_TESTING)
add_executable(thumbgen_png_tiff_rows_tests tests/test_png_tiff_rows.cpp)
target_include_directories(thumbgen_png_tiff_rows_tests PRIVATE src)
target_link_libraries(thumbgen_png_tiff_rows_tests PRIVATE thumbgen_core OpenImageIO::OpenImageIO TIFF::TIFF ZLIB::ZLIB)
add_test(NAME core_png_tiff_rows COMMAND thumbgen_png_tiff_rows_tests)
add_executable(thumbgen_other_rows_tests tests/test_other_rows.cpp)
target_link_libraries(thumbgen_other_rows_tests PRIVATE thumbgen_core OpenImageIO::OpenImageIO)
add_test(NAME core_other_rows COMMAND thumbgen_other_rows_tests)
set_tests_properties(core_png_tiff_rows core_other_rows PROPERTIES TIMEOUT 120 LABELS "regression"
ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>;LD_LIBRARY_PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>")
add_executable(thumbgen_bounded_exr_tests tests/test_bounded_exr.cpp)
target_link_libraries(thumbgen_bounded_exr_tests PRIVATE thumbgen_core OpenImageIO::OpenImageIO OpenEXR::OpenEXRCore)
add_executable(thumbgen_exr_profile_tests tests/test_exr_profile.cpp)
target_include_directories(thumbgen_exr_profile_tests PRIVATE src)
target_link_libraries(thumbgen_exr_profile_tests PRIVATE thumbgen_core)
Expand Down Expand Up @@ -236,6 +271,11 @@ if(BUILD_TESTING)
add_test(NAME core_fast_colour COMMAND thumbgen_fast_colour_tests)
set_tests_properties(core_fast_colour PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>;LD_LIBRARY_PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>")
add_executable(thumbgen_jpeg_rows_tests tests/test_jpeg_rows.cpp)
target_link_libraries(thumbgen_jpeg_rows_tests PRIVATE thumbgen_core OpenImageIO::OpenImageIO LittleCMS2::LittleCMS2)
add_test(NAME core_jpeg_rows COMMAND thumbgen_jpeg_rows_tests)
set_tests_properties(core_jpeg_rows PROPERTIES TIMEOUT 120 ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>;LD_LIBRARY_PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>")
add_executable(thumbgen_resize_srgb_tests tests/test_resize_srgb.cpp)
target_include_directories(thumbgen_resize_srgb_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
target_link_libraries(thumbgen_resize_srgb_tests PRIVATE thumbgen_core OpenImageIO::OpenImageIO)
Expand Down Expand Up @@ -476,6 +516,10 @@ if(BUILD_TESTING)
message(FATAL_ERROR "The explicit test Python is unavailable; refusing to omit public tests")
endif()
if(Python3_Interpreter_FOUND)
add_test(NAME core_bounded_exr COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/run_exr_pipeline.py --exe $<TARGET_FILE:thumbgen_bounded_exr_tests>)
set_tests_properties(core_bounded_exr PROPERTIES TIMEOUT 120 LABELS "exr;regression" ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>;LD_LIBRARY_PATH=path_list_prepend:$<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>")
add_executable(thumbgen_cms_tests tests/test_cms_input.cpp src/cms_input.cpp)
target_include_directories(thumbgen_cms_tests PRIVATE src)
target_compile_features(thumbgen_cms_tests PRIVATE cxx_std_17)
Expand All @@ -498,6 +542,20 @@ if(BUILD_TESTING)
message(FATAL_ERROR "Full tests require THUMBGEN_TEST_PROTOCOL=ON")
endif()
if(THUMBGEN_TEST_PROTOCOL)
add_test(NAME public_bounded_jpeg COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/test_bounded_jpeg_cli.py --exe $<TARGET_FILE:thumbgen>
--fixture-exe $<TARGET_FILE:thumbgen_jpeg_rows_tests>
--schema-dir ${CMAKE_CURRENT_SOURCE_DIR}/schemas --runtime-dir $<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>)
set_tests_properties(public_bounded_jpeg PROPERTIES TIMEOUT 240 LABELS "protocol;colour;scheduler")
add_test(NAME public_bounded_png_tiff COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/test_bounded_png_tiff_cli.py --exe $<TARGET_FILE:thumbgen>
--reference-probe $<TARGET_FILE:thumbgen_colour_probe>
--schema-dir ${CMAKE_CURRENT_SOURCE_DIR}/schemas --runtime-dir $<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>)
add_test(NAME public_bounded_other COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/test_bounded_other_cli.py --exe $<TARGET_FILE:thumbgen>
--schema-dir ${CMAKE_CURRENT_SOURCE_DIR}/schemas --runtime-dir $<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>)
set_tests_properties(public_bounded_png_tiff public_bounded_other
PROPERTIES TIMEOUT 360 LABELS "protocol;colour;scheduler")
add_test(NAME public_integer_colour COMMAND ${Python3_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/tests/test_integer_cli.py --exe $<TARGET_FILE:thumbgen>
--schema-dir ${CMAKE_CURRENT_SOURCE_DIR}/schemas --runtime-dir $<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>)
Expand All @@ -506,7 +564,7 @@ if(BUILD_TESTING)
${CMAKE_CURRENT_SOURCE_DIR}/tests/test_color_input.py --exe $<TARGET_FILE:thumbgen>
--probe-exe $<TARGET_FILE:thumbgen_color_input_probe> --schema-dir ${CMAKE_CURRENT_SOURCE_DIR}/schemas
--runtime-dir $<TARGET_FILE_DIR:OpenImageIO::OpenImageIO>)
# Budget the whole 20-method suite, including independent probe launches;
# Budget the whole suite, including independent probe launches;
# each child still has its separate 45-second limit in the Python test.
set_tests_properties(public_color_input PROPERTIES TIMEOUT 180 LABELS "protocol;colour")
add_test(NAME public_sampled_id COMMAND ${Python3_EXECUTABLE}
Expand Down Expand Up @@ -555,7 +613,7 @@ endif()


option(THUMBGEN_BUILD_COLOUR_PROBE "Build the product API colour acceptance probe" OFF)
if(THUMBGEN_BUILD_COLOUR_PROBE)
if(THUMBGEN_BUILD_COLOUR_PROBE OR (BUILD_TESTING AND Python3_Interpreter_FOUND AND THUMBGEN_TEST_PROTOCOL))
add_executable(thumbgen_colour_probe tests/tools/colour_probe.cpp)
target_link_libraries(thumbgen_colour_probe PRIVATE thumbgen_core)
endif()
Expand Down
4 changes: 2 additions & 2 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ThumbGen makes thumbnails from standard images and complex EXRs, fast. Decode on

Fast, EXR-aware previews for production pipelines.

`0.1.2` · [Apache-2.0](LICENSE)
`0.1.3` · [Apache-2.0](LICENSE)

## Where it fits

Expand Down Expand Up @@ -66,7 +66,7 @@ These are actual ThumbGen outputs from publicly redistributable EXR samples. [Im

Available for Windows x64 and Linux x64, including CentOS 7.9 and Rocky Linux 9 environments.

Read OpenEXR, PNG, JPEG, TIFF, WebP, TGA, BMP, Radiance HDR and DPX; write JPEG, PNG and lossy WebP. Special formats and image layouts have [some restrictions](docs/en/color-cms.md). Run `thumbgen capabilities --json` to see the formats available in your copy.
Read OpenEXR, PNG, JPEG, TIFF, WebP, TGA, BMP, Radiance HDR and DPX. Write JPEG, PNG and lossy WebP. See the [large-preview guide](docs/en/large-previews.md) for bounded layouts and budget settings. Run `thumbgen capabilities --json` to see the formats available in your copy.

## Quick start

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ThumbGen 为普通图片和复杂 EXR 快速生成缩略图。一次解码输出

为制作管线提供快速、懂 EXR 的预览能力。

`0.1.2` · [Apache-2.0](LICENSE)
`0.1.3` · [Apache-2.0](LICENSE)

## 适用场景

Expand Down Expand Up @@ -66,7 +66,7 @@ PNG、JPEG、TIFF 等常见图片也能处理;支持 Alpha、方向、多 part

支持 Windows x64 和 Linux x64,已在 CentOS 7.9、Rocky Linux 9 等环境使用。

可读取 OpenEXR、PNG、JPEG、TIFF、WebP、TGA、BMP、Radiance HDR 和 DPX,输出 JPEG、PNG 和有损 WebP。特殊格式与图像布局有[部分限制](docs/color-cms.md),可用 `thumbgen capabilities --json` 查看当前程序的格式支持。
可读取 OpenEXR、PNG、JPEG、TIFF、WebP、TGA、BMP、Radiance HDR 和 DPX,输出 JPEG、PNG 和有损 WebP。支持有界解码的布局与预算设置见[大图预览](docs/large-previews.md)。可用 `thumbgen capabilities --json` 查看当前程序的格式支持。

## 快速开始

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| [快速上手](getting-started.md) | 第一次运行与常用操作 |
| [安装](installation.md) | 程序目录与运行环境 |
| [命令参考](cli.md) | 尺寸、格式、背景与资源设置 |
| [大图预览](large-previews.md) | 有界解码布局、内存预算与回退 |
| [图层与序列](selection.md) | 选择主画面并保持连续帧一致 |
| [色彩管理](color-cms.md) | OCIO、ICC 与透明度 |
| [数据预览](data-preview.md) | 深度、法线、矢量与 ID |
Expand Down
4 changes: 3 additions & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ thumbgen convert frame.exr --output preview.jpg --ocio-config config.ocio --inpu

数据预览使用 `--visualize`、`--channels`、`--data-range MIN,MAX` 和 `--invalid-values black|magenta|error`,详见[数据预览](data-preview.md)。Deep 颜色使用 `--deep-mode flatten`,详见[Deep EXR](public-deep.md)。

使用 `--visualize auto` 在一次转换中按现有规则选颜色图。没有颜色候选时,程序可以预览一个可确定的 Cryptomatte 家族。跨 part 的编号层会一起读取。多个家族或不完整的布局会给出错误。指定 part、通道或 Deep 展平时,自动模式遵循显式选择。色彩管理选项只用于颜色预览。
使用 `--visualize auto` 在一次转换中选择颜色或 Cryptomatte 预览。默认策略优先选择明确命名的主画面,其次优先选择各 part 内的顶层 RGB。若未指定 part 或通道,且多个 EXR part 仍有颜色候选,自动模式可在其余候选都是阴影、环境光遮蔽或 Fresnel 等可识别的辅助通道组时,选用唯一一组无前缀的 RGB 或 RGBA。

没有颜色候选时,自动模式可以跨 part 预览单个 Cryptomatte 家族。默认选择策略下,多个家族中唯一的 `crypto_object` 或 `CryptoObject` 优先(不区分大小写)。无法消除歧义或所选布局无效时会报错。指定 part、通道或 Deep 展平时,自动模式遵循显式选择。色彩管理选项只用于颜色预览。

## 执行预算与时限

Expand Down
4 changes: 3 additions & 1 deletion docs/color-cms.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ thumbgen convert frame.exr --output preview.jpg --ocio-config config.ocio --inpu

## 嵌入 ICC

受支持的单张 PNG、JPEG、TIFF、WebP 会自动应用 RGB / 灰度 ICC。显式指定输入空间会覆盖嵌入配置,因此只应在确认源颜色含义时使用。
受支持的单张 PNG、JPEG、TIFF、WebP 会自动应用 RGB 或灰度 ICC。自动选择输入空间且未指定配置、显示器或视图时,这类文件使用 `ocio://default`,不受 `OCIO` 环境变量影响。显式选择配置或显示器与视图时,遵循上文的项目配置规则。显式指定输入空间会覆盖嵌入配置。

用于 ICC 转换的项目配置须能解析标准非线性场景参考空间 `srgb_rec709_scene`。可直接用标准名声明该色彩空间,也可声明对应别名并设置同名 interop ID。CMYK ICC 仍遵循显式指定或从环境继承的项目配置。

带可靠 ICC 的四通道 CMYK TIFF,以及受支持的 8-bit baseline Adobe CMYK/YCCK JPEG,可以转为 RGB 预览。没有可靠 profile、分色布局不支持或 ICC 损坏时会报告错误;给 CMYK 强行指定 RGB 空间不能替代正确转换。

Expand Down
1 change: 1 addition & 0 deletions docs/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
| [Getting started](getting-started.md) | First conversion and common tasks |
| [Installation](installation.md) | Program folder and runtime setup |
| [Command reference](cli.md) | Sizes, formats, backgrounds and resources |
| [Large previews](large-previews.md) | Bounded layouts, admission and fallback |
| [Layers and sequences](selection.md) | Pick layers and keep frames consistent |
| [Color management](color-cms.md) | OCIO, ICC and transparency |
| [Data previews](data-preview.md) | Depth, normals, vectors and IDs |
Expand Down
4 changes: 3 additions & 1 deletion docs/en/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ thumbgen convert frame.exr --output preview.jpg --ocio-config config.ocio --inpu

Data previews use `--visualize`, `--channels`, `--data-range MIN,MAX` and `--invalid-values black|magenta|error`. See [data previews](data-preview.md). For Deep color, use `--deep-mode flatten`; see [Deep EXR](public-deep.md).

Use `--visualize auto` to apply the standard color selection rules in one conversion. When there are no color candidates, it can preview an unambiguous Cryptomatte family, reading its numbered layers across parts. Multiple families or an incomplete layout produce an error. Part, channel and Deep flattening options take precedence. Color management options apply only to color previews.
Use `--visualize auto` to select a color or Cryptomatte preview in one conversion. The default selection policy prefers recognized primary images, then top-level RGB within each part. If multiple EXR parts still compete and no explicit part or channels were requested, auto mode can select a unique unprefixed RGB or RGBA group when all the other remaining color candidates are recognized auxiliary passes such as shadow, ambient occlusion, or Fresnel.

When there are no color candidates, automatic mode can preview a single Cryptomatte family across parts. Under the default selection policy, a unique `crypto_object` or `CryptoObject` family (case-insensitive) takes priority among multiple families. Ambiguous selections and invalid selected layouts produce errors. Part, channel and Deep flattening options take precedence. Color management options apply only to color previews.

## Resource budgets and timeouts

Expand Down
4 changes: 3 additions & 1 deletion docs/en/color-cms.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Input space comes from `--input-space` first, otherwise file metadata. With no s

## Embedded ICC

Supported single-image PNG, JPEG, TIFF and WebP inputs automatically use RGB / grayscale ICC profiles. An explicit input space overrides the embedded profile, so use it only when you know the source colors.
Supported single-image PNG, JPEG, TIFF and WebP inputs automatically use RGB or grayscale ICC profiles. With automatic input space and no explicit config, display or view, these files use `ocio://default` regardless of `OCIO`. An explicit config or display/view request follows the project configuration rules above. An explicit input space overrides the embedded profile.

A project config used for ICC must resolve the standard nonlinear scene-referred `srgb_rec709_scene` bridge. Use the canonical color-space name or a declared alias with that interop ID. CMYK ICC continues to use the project's configuration when one is supplied or inherited.

Four-channel CMYK TIFF and supported 8-bit baseline Adobe CMYK/YCCK JPEG inputs with reliable ICC profiles can produce RGB previews. Missing profiles, unsupported ink layouts or damaged ICC data cause errors. Assigning an RGB space to CMYK is not a substitute for proper conversion.

Expand Down
Loading
Loading