summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/img2pdf/default-icc-profile.patch
blob: 28d334a71e6b961291c5439699eb884c6f393e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/src/img2pdf.py b/src/img2pdf.py
index f89670b..01ec4d3 100755
--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -3841,17 +3841,7 @@ def validate_icc(fname):
 
 
 def get_default_icc_profile():
-    for profile in [
-        "/usr/share/color/icc/sRGB.icc",
-        "/usr/share/color/icc/OpenICC/sRGB.icc",
-        "/usr/share/color/icc/colord/sRGB.icc",
-    ]:
-        if not os.path.exists(profile):
-            continue
-        if not file_is_icc(profile):
-            continue
-        return profile
-    return "/usr/share/color/icc/sRGB.icc"
+    return "@srgbProfile@"
 
 
 def get_main_parser():