forked from rDrama/rDrama
1
0
Fork 0
rDrama/files/helpers
Snakes 9f7adb2614
Fix recent CPU spikes from image encoding.
Certain animated images take an exceedingly long time (~minutes) to
encode to WEBP using method=6. Such a file was obtained, and it
encoded significantly faster using method=5 and somehow turned out
smaller than the result generated with method=6. We switch now to
use method=5 so we stop getting occasional massive increases in
CPU load when multiple users upload animations at the same time.

Additionally, a timeout was added to the ImageMagick subprocess just
in case there are even more pathological files in the future. Better
to error out than have to get someone to kill the process.
2022-11-06 00:48:54 -04:00
..
actions.py snappy: fix weird missing line 2022-11-05 02:19:57 -05:00
alerts.py remove @jannies 2022-10-31 00:41:26 +02:00
assetcache.py Rebuild assetcache on inotify events. 2022-09-27 02:07:32 -04:00
awards.py change the chud theme terminology to a verb instead 2022-11-05 04:12:21 +02:00
casino.py actions: move user-only actions to useractions, which gets rid of a circular dependency 2022-11-01 18:46:56 -05:00
cloudflare.py use tabs, not spaces 2022-10-29 01:39:31 +02:00
const.py Fix recent CPU spikes from image encoding. 2022-11-06 00:48:54 -04:00
cron.py give_monthly_marseybux_task fixes 2022-11-02 08:19:25 +02:00
discord.py fix discord changelog channel 2022-10-30 02:43:55 +02:00
get.py Fix DMs not checking blocks. 2022-11-02 16:23:01 -04:00
jinja2.py constantify image extensions and fix imgur .gif bug 2022-11-05 23:01:23 +02:00
lazy.py certified good commit 2022-05-25 19:01:29 +02:00
lottery.py actions: move user-only actions to useractions, which gets rid of a circular dependency 2022-11-01 18:46:56 -05:00
marsify.py Add trailing final newlines to source files. 2022-09-29 01:43:29 -04:00
media.py Fix recent CPU spikes from image encoding. 2022-11-06 00:48:54 -04:00
offsitementions.py remove redundant "noreferrer" 2022-10-29 23:46:35 +02:00
owoify.py Fix owoify award affecting links, emoji, markup. 2022-08-27 00:48:44 -04:00
regex.py constantify image extensions and fix imgur .gif bug 2022-11-05 23:01:23 +02:00
roulette.py dedup converting game state to json 2022-10-30 02:32:40 +02:00
sanitize.py constantify image extensions and fix imgur .gif bug 2022-11-05 23:01:23 +02:00
security.py tweak env again 2022-10-10 11:06:27 +02:00
slots.py fix 500 error 2022-11-02 05:23:46 +02:00
sorting_and_time.py fix "52yr ago" bug 2022-10-15 23:57:55 -07:00
stats.py stats: add time 2022-11-05 19:15:13 -05:00
treasure.py Add trailing final newlines to source files. 2022-09-29 01:43:29 -04:00
twentyone.py dedup converting game state to json 2022-10-30 02:32:40 +02:00
useractions.py newlines make @TLSM happy 2022-11-01 19:00:03 -05:00
wrappers.py get lo user: fix 401 loop by clearing session on bad nonce 2022-10-28 20:07:39 -05:00