mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-11 16:52:29 +03:00
createprofile
This commit is contained in:
parent
db4f11a05c
commit
a2fd0e99e2
|
@ -406,9 +406,9 @@ createProfile(PyObject *self, PyObject *args)
|
||||||
PyErr_SetString(PyExc_ValueError, "ERROR: Could not calculate white point from color temperature provided, must be float in degrees Kelvin");
|
PyErr_SetString(PyExc_ValueError, "ERROR: Could not calculate white point from color temperature provided, must be float in degrees Kelvin");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
hProfile = cmsCreateLabProfile(whitePoint);
|
hProfile = cmsCreateLab2Profile(whitePoint);
|
||||||
} else {
|
} else {
|
||||||
hProfile = cmsCreateLabProfile(NULL);
|
hProfile = cmsCreateLab2Profile(NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (strcmp(sColorSpace, "XYZ") == 0) {
|
else if (strcmp(sColorSpace, "XYZ") == 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user