Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
24 lines
619 B
Diff
24 lines
619 B
Diff
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():
|