Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsumoto-ren committed Jun 7, 2024
1 parent 9252f27 commit b1d8dc7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/RELEASE/subs2srs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion subs2srs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1d8dc7

Please sign in to comment.