Skip to content

Commit

Permalink
docs: reword the image preview size explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Mar 15, 2024
1 parent 833b211 commit f0fb59f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/image-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ If the image shows properly when using Überzug++ independently, but not when us

The size of the image depends on two factors:

1. the user's settings for [max_width](/docs/configuration/yazi#max_width) and [max_height](/docs/configuration/yazi#max_height);
2. the pixel size of the terminal.
1. The [max_width](/docs/configuration/yazi#max_width) and [max_height](/docs/configuration/yazi#max_height) config options, which need to be adjusted by the user as needed.
2. The pixel size of the terminal.

Yazi will use the smaller of these two values as the image preview size.
Yazi will use the smaller of these two factors as the image preview size.

However, some terminals (such as VSCode, Tabby, and all Windows terminals) don't implement the `ioctl` system call, before [Add `CSI 14 t` sequence support](https://github.com/crossterm-rs/crossterm/pull/810) is merged, it's not possible to obtain the actual pixel width and height of the terminal.

Expand Down

0 comments on commit f0fb59f

Please sign in to comment.