From e2ee3d1384efe3df16edf55053d47e33c75425c1 Mon Sep 17 00:00:00 2001 From: HorstOeko Date: Wed, 11 Dec 2024 17:15:15 +0100 Subject: [PATCH] #211 Significantly increased PDF file size -> Changed to smaller ICC profile --- src/ZugferdSettings.php | 2 +- src/assets/sRGB2014.icc | Bin 0 -> 3024 bytes tests/testcases/SettingsTest.php | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 src/assets/sRGB2014.icc diff --git a/src/ZugferdSettings.php b/src/ZugferdSettings.php index 5ee7941d..b82f7423 100644 --- a/src/ZugferdSettings.php +++ b/src/ZugferdSettings.php @@ -69,7 +69,7 @@ class ZugferdSettings * * @var string */ - protected static $iccProfileFilename = "sRGB_v4_ICC.icc"; + protected static $iccProfileFilename = "sRGB2014.icc"; /** * The filename of the XMP meta data diff --git a/src/assets/sRGB2014.icc b/src/assets/sRGB2014.icc new file mode 100644 index 0000000000000000000000000000000000000000..49afbfef10f22a1832590b68369d2f248ea553b9 GIT binary patch literal 3024 zcmb`Jc{r5o8^@pboqe;-klom~#=Z=)?<7n1RL0C;EQ4W?v`H$Qlq6e;oU(N2=!6`p zq_j9fq0&N*O8IqkN}I~>9j@P{b6vkb&vRYx^M3C8x$pP6pZoda{Q^K51jvAqCy}2f z2yl0zhlYjIaZeGKxM&3c7CSY0nf@_DE7pfmuw>n3hyBge}>zEF^|hhw$p<`Vm43NktlHVq|Q#Wc`bi=uVbDr*Q%R@mv7f?y!Y| z^kpAf^uhola$__g2b6(2&;bl!0xW?IZ~(5r3;2RS5C%2@Hi!j@Kmam8HrNI7Kmj-i zj(`eK4eCGxXa=pI9dv;!;5xVs2Ehmz2NPf#yasdN16Y6{2nSIhDkKM~K$?&~WCAfE zJIEDU3k5)7P$U!s@gX6U4ef>spkk;3s(~7yU!e=o73d~31U-Nzp&96J=nIU3$uJF8 zg0)~nm^L%}Fw^fA^LPfRE#29trw!<1r9Va{W&VMZ|1m=9PiRtBq$wZwX0 z!?1DKt=K~BF>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uNAQsBb82-EmewD`>Q@4 z;~X14?r^-hTB*9A`pXI4iTgF~HEp$8wWTMqC(}uM0h$Hl62xH~9T@mugq#Md^!0-Nf$P?!`-4 zm*y`gU!J`Zb7iV$bIqdq~gGTRGoA)2d|5UxvdGp&}4uAE}h0aaC6}(;i zyYQXdyVLK@-uKM=%|H2&_+jB={wKLl^`Dua`@V#Hd9jf375BC5o9?&H@7~`ZEha85 z{-8k&JYAjX7RFW<77P=HG2Mk5%@QW0(M8J6IVmAYD4?%TX0f?+23;gpmIcJWHm~TE zsB!?>_W&UKaK(pgBT{F`Sk`1q_=ApIvi~>1Kja-poFc8Ycg2@f3jlK-0Mx-$UJPB7 zEaT{Co~CjhDoy^Z4|Cv`LizZ;q8ZSF~{&Hxtp1 zNS#T^TLiqA*fhE)KaDHkvqTlK5|(a9AgVDnNsz`9Ca$I)0svP6z_+5s#f6&1#cxP2P~!kx7XBBF2+<<| literal 0 HcmV?d00001 diff --git a/tests/testcases/SettingsTest.php b/tests/testcases/SettingsTest.php index 1874be5e..b5a3b762 100644 --- a/tests/testcases/SettingsTest.php +++ b/tests/testcases/SettingsTest.php @@ -20,7 +20,7 @@ public static function tearDownAfterClass(): void ZugferdSettings::setMeasureDecimals(2); ZugferdSettings::setDecimalSeparator("."); ZugferdSettings::setThousandsSeparator(""); - ZugferdSettings::setIccProfileFilename("sRGB_v4_ICC.icc"); + ZugferdSettings::setIccProfileFilename("sRGB2014.icc"); } public function testAmountDecimals(): void @@ -103,7 +103,7 @@ public function testThousandsSeparator(): void public function testIccProfileFilename(): void { - $this->assertEquals("sRGB_v4_ICC.icc", ZugferdSettings::getIccProfileFilename()); + $this->assertEquals("sRGB2014.icc", ZugferdSettings::getIccProfileFilename()); ZugferdSettings::setIccProfileFilename("sRGB_v5_ICC.icc");