Skip to content
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

Add support for passing intent when converting color profiles #468

Open
james-johnston-thumbtack opened this issue Feb 4, 2024 · 0 comments

Comments

@james-johnston-thumbtack

The libvips icc_transform function supports passing an intent variable, as described here: https://www.libvips.org/API/current/libvips-colour.html#vips-icc-transform

Optional arguments:

intent : VipsIntent, transform with this intent

VipsIntent looks like this:

The rendering intent. VIPS_INTENT_ABSOLUTE is best for scientific work, VIPS_INTENT_RELATIVE is usually best for accurate communication with other imaging libraries.

VIPS_INTENT_PERCEPTUAL | perceptual rendering intent
VIPS_INTENT_RELATIVE | relative colorimetric rendering intent
VIPS_INTENT_SATURATION | saturation rendering intent
VIPS_INTENT_ABSOLUTE | absolute colorimetric rendering intent

This issue is a feature request to add support for this parameter when calling icc_transform. For example, perhaps it could be added to the Options structure at https://pkg.go.dev/github.com/h2non/bimg#Options.

This option seems to be required in order to correctly convert some CMYK images, like the example discussed here in the last comment: libvips/php-vips#106 (comment)

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

No branches or pull requests

1 participant