added some icc color hint
This commit is contained in:
parent
8b73e65657
commit
420f22c4d0
@ -55,10 +55,13 @@ class OutputProBitmap(inkex.EffectExtension):
|
|||||||
if "nt" in os.name:
|
if "nt" in os.name:
|
||||||
icc_dir = 'C:\\Windows\\System32\\spool\\drivers\\color'
|
icc_dir = 'C:\\Windows\\System32\\spool\\drivers\\color'
|
||||||
else:
|
else:
|
||||||
icc_dir = '/usr/share/color/icc/'
|
icc_dir = '/usr/share/color/icc/colord/'
|
||||||
list_of_profiles = os.listdir(icc_dir)
|
list_of_profiles = os.listdir(icc_dir)
|
||||||
|
#inkex.utils.debug(list_of_profiles)
|
||||||
|
|
||||||
selected_screen_profile = inkscape_config.split('id="displayprofile"')[1].split('uri="')[1].split('" />')[0].split('/')[-1]
|
selected_screen_profile = inkscape_config.split('id="displayprofile"')[1].split('uri="')[1].split('" />')[0].split('/')[-1]
|
||||||
|
if selected_screen_profile == '':
|
||||||
|
inkex.utils.debug("Configured icc color profile (Inkscape) is not set. Configure it in preferences and restart Inkscape to apply changes.")
|
||||||
selected_print_profile = inkscape_config.split('id="softproof"')[1].split('uri="')[1].split('" />')[0].split('/')[-1]
|
selected_print_profile = inkscape_config.split('id="softproof"')[1].split('uri="')[1].split('" />')[0].split('/')[-1]
|
||||||
|
|
||||||
rgb_profile = '"' + inkscape_config.split('id="displayprofile"')[1].split('uri="')[1].split('" />')[0] + '"'
|
rgb_profile = '"' + inkscape_config.split('id="displayprofile"')[1].split('uri="')[1].split('" />')[0] + '"'
|
||||||
|
Reference in New Issue
Block a user