libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / development / python-modules / img2pdf / default-icc-profile.patch
blob28d334a71e6b961291c5439699eb884c6f393e7c
1 diff --git a/src/img2pdf.py b/src/img2pdf.py
2 index f89670b..01ec4d3 100755
3 --- a/src/img2pdf.py
4 +++ b/src/img2pdf.py
5 @@ -3841,17 +3841,7 @@ def validate_icc(fname):
8 def get_default_icc_profile():
9 - for profile in [
10 - "/usr/share/color/icc/sRGB.icc",
11 - "/usr/share/color/icc/OpenICC/sRGB.icc",
12 - "/usr/share/color/icc/colord/sRGB.icc",
13 - ]:
14 - if not os.path.exists(profile):
15 - continue
16 - if not file_is_icc(profile):
17 - continue
18 - return profile
19 - return "/usr/share/color/icc/sRGB.icc"
20 + return "@srgbProfile@"
23 def get_main_parser():