From b1d8dc734d33d80e3d822a00fd1b7543338c4105 Mon Sep 17 00:00:00 2001 From: Ren Tatsumoto Date: Fri, 7 Jun 2024 13:43:22 +0300 Subject: [PATCH] update docs --- .github/RELEASE/subs2srs.conf | 5 +++-- README.md | 3 ++- subs2srs.lua | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/RELEASE/subs2srs.conf b/.github/RELEASE/subs2srs.conf index da3d305..eb60345 100644 --- a/.github/RELEASE/subs2srs.conf +++ b/.github/RELEASE/subs2srs.conf @@ -139,8 +139,9 @@ reload_config_before_card_creation=yes ## # Snapshot format. -# Do not switch to `jpg` unless your computer doesn't support `webp`. -snapshot_format=webp +# Do not switch to `jpg` unless your computer doesn't support `webp` or `avif`. +snapshot_format=avif +#snapshot_format=webp #snapshot_format=jpg # Quality of produced image files. 0 = lowest, 100=highest. diff --git a/README.md b/README.md index 5237421..65d91a2 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,8 @@ Alternatively, we have a collection of user-created note types, which you can br If you are having problems playing media files on older mobile devices, set `audio_format` to `mp3` and/or `snapshot_format` to `jpg`. -Otherwise, I recommend sticking with `opus` and `webp`, +Otherwise, I recommend sticking with `opus` for audio, +and `avif` or `webp` for images, as they greatly reduce the size of the generated files. If you still use AnkiMobile (the [proprietary](https://www.gnu.org/proprietary/) Anki app), diff --git a/subs2srs.lua b/subs2srs.lua index 2f10e4b..35a1f30 100644 --- a/subs2srs.lua +++ b/subs2srs.lua @@ -56,7 +56,7 @@ local config = { secondary_sub_visibility = 'auto', -- One of: 'auto', 'never', 'always'. Controls secondary_sid visibility. Ctrl+V to cycle. -- Snapshots - snapshot_format = "webp", -- webp or jpg + snapshot_format = "avif", -- avif, webp or jpg snapshot_quality = 15, -- from 0=lowest to 100=highest snapshot_width = -2, -- a positive integer or -2 for auto snapshot_height = 200, -- same