@@ -1432,17 +1432,19 @@ vips_icc_is_compatible_profile(VipsImage *image,
1432
1432
* Import an image from device space to D65 LAB with an ICC profile. If @pcs is
1433
1433
* set to #VIPS_PCS_XYZ, use CIE XYZ PCS instead.
1434
1434
*
1435
- * If @embedded is set, the input profile is taken from the input image
1436
- * metadata. If there is no embedded profile,
1437
- * @input_profile is used as a fall-back.
1438
- * You can test for the
1439
- * presence of an embedded profile with
1440
- * vips_image_get_typeof() with #VIPS_META_ICC_NAME as an argument. This will
1441
- * return %GType 0 if there is no profile.
1435
+ * The input profile is searched for in three places:
1442
1436
*
1443
- * If @embedded is not set, the input profile is taken from
1444
- * @input_profile. If @input_profile is not supplied, the
1445
- * metadata profile, if any, is used as a fall-back.
1437
+ * 1. If @embedded is set, libvips will try to use any profile in the input
1438
+ * image metadata. You can test for the presence of an embedded profile
1439
+ * with vips_image_get_typeof() with #VIPS_META_ICC_NAME as an argument.
1440
+ * This will return %GType 0 if there is no profile.
1441
+ *
1442
+ * 2. Otherwise, if @input_profile is set, libvips will try to load a
1443
+ * profile from the named file. This can aslso be the name of one of the
1444
+ * built-in profiles.
1445
+ *
1446
+ * 3. Otherwise, libvips will try to pick a compatible profile from the set
1447
+ * of built-in profiles.
1446
1448
*
1447
1449
* If @black_point_compensation is set, LCMS black point compensation is
1448
1450
* enabled.
@@ -1521,17 +1523,19 @@ vips_icc_export(VipsImage *in, VipsImage **out, ...)
1521
1523
* profile-connection space with the input profile and then to the output
1522
1524
* space with the output profile.
1523
1525
*
1524
- * If @embedded is set, the input profile is taken from the input image
1525
- * metadata, if present. If there is no embedded profile,
1526
- * @input_profile is used as a fall-back.
1527
- * You can test for the
1528
- * presence of an embedded profile with
1529
- * vips_image_get_typeof() with #VIPS_META_ICC_NAME as an argument. This will
1530
- * return %GType 0 if there is no profile.
1526
+ * The input profile is searched for in three places:
1527
+ *
1528
+ * 1. If @embedded is set, libvips will try to use any profile in the input
1529
+ * image metadata. You can test for the presence of an embedded profile
1530
+ * with vips_image_get_typeof() with #VIPS_META_ICC_NAME as an argument.
1531
+ * This will return %GType 0 if there is no profile.
1532
+ *
1533
+ * 2. Otherwise, if @input_profile is set, libvips will try to load a
1534
+ * profile from the named file. This can aslso be the name of one of the
1535
+ * built-in profiles.
1531
1536
*
1532
- * If @embedded is not set, the input profile is taken from
1533
- * @input_profile. If @input_profile is not supplied, the
1534
- * metadata profile, if any, is used as a fall-back.
1537
+ * 3. Otherwise, libvips will try to pick a compatible profile from the set
1538
+ * of built-in profiles.
1535
1539
*
1536
1540
* If @black_point_compensation is set, LCMS black point compensation is
1537
1541
* enabled.
0 commit comments