Method
VipsImageicc_import
Declaration [src]
int
vips_icc_import (
VipsImage* in,
VipsImage** out,
...
)
Description [src]
Import an image from device space to D65 LAB with an ICC profile.
If pcs is set to VipsPCS, use CIE XYZ PCS instead.
The input profile is searched for in three places:
-
If
embeddedis set, libvips will try to use any profile in the input image metadata. You can test for the presence of an embedded profile withvips_image_get_typeof()withVIPS_META_ICC_NAMEas an argument. This will returnGType0 if there is no profile. -
Otherwise, if
input_profileis set, libvips will try to load a profile from the named file. This can also be the name of one of the built-in profiles. -
Otherwise, libvips will try to pick a compatible profile from the set of built-in profiles.
If black_point_compensation is set, LCMS black point compensation is enabled.
Optional arguments
pcs:VipsPCS, use XYZ or LAB PCSintent:VipsIntent, transform with this intentblack_point_compensation:gboolean, enable black point compensationembedded:gboolean, use profile embedded in input imageinput_profile:gchararray, get the input profile from here.
This method is not directly available to language bindings.
Parameters
out-
Type:
VipsImageOutput image.
The argument will be set by the function. The caller of the method takes ownership of the data, and is responsible for freeing it. ...-
Type:
NULL-terminated list of optional named arguments.