Skip to content

Colour-manage input via PCS for device-independent colourspaces - #4596

Open
mertalev wants to merge 1 commit into
lovell:mainfrom
mertalev:fix/linear-processing
Open

Colour-manage input via PCS for device-independent colourspaces#4596
mertalev wants to merge 1 commit into
lovell:mainfrom
mertalev:fix/linear-processing

Conversation

@mertalev

@mertalev mertalev commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #4595 by importing input profiles through the ICC profile connection space when using a device-independent pipeline colourspace, as vips_thumbnail does in linear mode. EnsureColourspace is deferred until after it, and icc_export before the output colourspace is applied, since converting to a device space first would gamut-clip.

Also slightly relaxes shrink-on-load to be allowed if the conversion is deferred as such. This actually affects whether the resampling is linear, so deferring this for now. It could maybe be a separate PR that ties it to fastShrinkOnLoad.

@mertalev
mertalev force-pushed the fix/linear-processing branch 2 times, most recently from 67554d2 to cbe8835 Compare August 31, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pipelineColourspace with a device-independent colourspace has incorrect color management

1 participant