From 8f289240e91a6b8525c971a4c99cd5b0177f86f2 Mon Sep 17 00:00:00 2001 From: Anton Sarukhanov <code@ant.sr> Date: Wed, 16 Sep 2020 16:11:13 -0400 Subject: [PATCH] Photos: try to make it faster; fix typo. --- my_plugins/photos/__init__.py | 2 +- my_plugins/photos/images/video-icon.png | Bin 0 -> 9678 bytes pelicanconf.py | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 my_plugins/photos/images/video-icon.png diff --git a/my_plugins/photos/__init__.py b/my_plugins/photos/__init__.py index f380cef..b7913d2 100644 --- a/my_plugins/photos/__init__.py +++ b/my_plugins/photos/__init__.py @@ -220,7 +220,7 @@ def copy_videos(generator, writer): if debug: copy_worker(orig, copied, generator.settings) else: - pool.apply_async(resize_worker, (orig, copied, generator.settings)) + pool.apply_async(copy_worker, (orig, copied, generator.settings)) pool.close() pool.join() diff --git a/my_plugins/photos/images/video-icon.png b/my_plugins/photos/images/video-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..87c6aa7d2c5f90d7ed813057a9bfe623bfafd9f2 GIT binary patch literal 9678 zcmeHNcU)6R*S-l|1nIIgLuiTyLPALbNH0M;h+qLjiiDPsgr*`zq=+I?lxhJL5EYP) zEK(FH;-Y{8f>K2h6;bTScN4+gch}u_-}n3e`*w1}%sum*=bSlnX2RUxT^d*#1w?Et z@s<Dt0tMv253n=_#8`w;DFA@Ss{{N10Pp}Z5FP*mwrs$!>~h-~Y_ErKapYWJTMHyu z4c6PiFA8i+fHg?MDSA+VbH7qs;q4q@C=D&71_nSOQAivTi$h{yC@q|h4o+JK^g;NT z4~s>|X=(;CH3%e{H(7&73(yQB&^5I*keYyjQ5c;-^dqxi-sC;hKtuSeYuDj0D#;MO zO~(#tM>iw;P_6ee$S!;BU5R`Bh*%QbXfw<p3>Owa4<NG$u&@CCKqfBC5Y8dTfo--} z6At4*Sbm0ZchE&M8iNee*3i~KBEXP@px__}gG9kOn_Dh3fOm%QWmiK(Lp4It8Z^cp zO)V@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wfpL6*{im+8pQrrQnN{T9o>{*k6u>plejWp5 z$B$DWfT*G|%miHU^zX}EWN|U9rCFxOZ7`jOcRkU8)TOM~apYCU>et5Rqci;_ZkM-L z`EshOW1fr2&rZrijT?^&MhW^&r78kzk4sHWIlDQ@Wv_`J%Xcf^tcT<4he%W|R5o56 zsYpoXANrOs-|{AAx?+E^aBVZ*;shqO;ePR9_mgqf3mc}LPGbZ5P?e4035`HmtyHW5 z-MaYXSw4YuWQ_aqIml^V+NrZ@1j&GS?$YzujygT8ZF#QeH>X^omr!uk{ue4EHeFET zP=#;e6o0~7b^XwFNqw-XM-8EKR5GR8{%-T_ELypXB7DDn*#5qv7sChE^1TV^j%r3( zZNnxA7^B+7B?C%FW>%55ewI_o8o-Xjv}#T)s&9?We{w*@DsbX8wXQ~w+cO**TQIk0 zbM&e>`||r|X)jfCvpx<)lZ(dN^qz~HNs&)*`3Pf4MVqv-O>njQ%{K0<+A832{N?Tm zQ8l;_K1l1VMBvlJ^i!>9yTpbkvopyfx5nx-5YC62k87$#=It8(P-;(S&yyo0N}88f zt}}V0?Y(M~rg83YWoj_RqoU~N6IGuMfgZWC>f>B{4eOIewRf5H1&qU2$!>>^t>Q}A z3auB&JDWLiTXw*5y^_w9rogbBSOTj`u$Sl68<WXjq>I&z>%C+A4$9P_NF8aawppBN zi}i>ybWi7Q$~j8+I3yB({9{_CMA;FzNX$Eg-zJL)372Zea`EuCQN6Y{lv2#G31!6( uklsT3JRIv8rwTQU$}PMoVsPSAMw|L|yUoQFJnnnW>h?uOsq#cF4gL?@5!9Ce literal 0 HcmV?d00001 diff --git a/pelicanconf.py b/pelicanconf.py index 40af017..add7964 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -18,7 +18,7 @@ PHOTO_GALLERY = (3840, 2160, 90) PHOTO_ARTICLE = (3840, 2160, 90) PHOTO_THUMB = (384, 256, 90) PHOTO_EXIF_KEEP = True -PHOTO_RESIZE_JOBS = 8 +PHOTO_RESIZE_JOBS = 18 MARKDOWN = {'extensions': ['toc(permalink=🔗)', 'codehilite(linenums=False)', 'extra']} -- GitLab