Adding more profiles to the Output color profile combobox in ICM
You can now select output profiles of the "OUTPUT" device class, but only if they have an RGB color-space.
This commit is contained in:
@@ -173,9 +173,15 @@ std::vector<Glib::ustring> ICCStore::getProfiles (const ProfileType type) const
|
||||
std::vector<Glib::ustring> res;
|
||||
|
||||
for (const auto profile : fileProfiles) {
|
||||
if ( (type==ICCStore::ProfileType::MONITOR && cmsGetDeviceClass(profile.second) == cmsSigDisplayClass && cmsGetColorSpace (profile.second) == cmsSigRgbData)
|
||||
|| (type==ICCStore::ProfileType::PRINTER && cmsGetDeviceClass(profile.second) == cmsSigOutputClass)
|
||||
|| (type==ICCStore::ProfileType::OUTPUT && cmsGetDeviceClass(profile.second) == cmsSigDisplayClass && cmsGetColorSpace (profile.second) == cmsSigRgbData) )
|
||||
if ( (type==ICCStore::ProfileType::MONITOR
|
||||
&& cmsGetDeviceClass(profile.second) == cmsSigDisplayClass
|
||||
&& cmsGetColorSpace (profile.second) == cmsSigRgbData)
|
||||
|| (type==ICCStore::ProfileType::PRINTER
|
||||
&& cmsGetDeviceClass(profile.second) == cmsSigOutputClass)
|
||||
|| (type==ICCStore::ProfileType::OUTPUT
|
||||
&& (cmsGetDeviceClass(profile.second) == cmsSigDisplayClass || cmsGetDeviceClass(profile.second) == cmsSigOutputClass)
|
||||
&& cmsGetColorSpace (profile.second) == cmsSigRgbData)
|
||||
)
|
||||
{
|
||||
res.push_back (profile.first);
|
||||
}
|
||||
|
@@ -801,7 +801,7 @@ void ImProcCoordinator::updatePreviewImage (int todo, Crop* cropCall)
|
||||
MyMutex::MyLock prevImgLock(previmg->getMutex());
|
||||
|
||||
try {
|
||||
// Computing the preview image, i.e. converting from WCS->Monitor color space (soft-proofing disabled) or WCS->Output profile->Monitor color space (soft-proofing enabled)
|
||||
// Computing the preview image, i.e. converting from WCS->Monitor color space (soft-proofing disabled) or WCS->Printer profile->Monitor color space (soft-proofing enabled)
|
||||
ipf.lab2monitorRgb (nprevl, previmg);
|
||||
|
||||
// Computing the internal image for analysis, i.e. conversion from WCS->Output profile
|
||||
|
Reference in New Issue
Block a user