Skip to content

colour: add support for auto-selecting the rendering intent #4366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

kleisauke
Copy link
Member

Via the VIPS_INTENT_AUTO enum value.

Resolves: #3475.

Via the `VIPS_INTENT_AUTO` enum value.

Resolves: libvips#3475.
*/
typedef enum {
VIPS_INTENT_PERCEPTUAL = 0,
VIPS_INTENT_RELATIVE,
VIPS_INTENT_SATURATION,
VIPS_INTENT_ABSOLUTE,
VIPS_INTENT_AUTO,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: we cannot define VIPS_INTENT_AUTO as -1 because it would conflict with the return code of vips_enum_from_nick(). Therefore, all supported enum values must always be greater than or equal to 0.

@jcupitt jcupitt merged commit 917d6f0 into libvips:master Jan 29, 2025
6 checks passed
@kleisauke kleisauke deleted the auto-intent branch January 30, 2025 09:26
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.

Add default-intent ICC rendering intent
2 participants