Skip to content

Commit

Permalink
gallery: Add "fill" mode for thumbnail scale
Browse files Browse the repository at this point in the history
Fills the entire tile with preview. Used by default.

Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Aug 19, 2024
1 parent 6e67b0b commit 60ffa9d
Show file tree
Hide file tree
Showing 9 changed files with 446 additions and 348 deletions.
2 changes: 2 additions & 0 deletions extra/swayimgrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ preload = 1
size = 200
# Max number of thumbnails in cache, 0 to unlimit
cache = 100
# Fill the entire tile with thumbnail (yes/no)
fill = yes
# Use anti-aliasing for thumbnails (yes/no)
antialiasing = no
# Background color of the window (RGBA)
Expand Down
3 changes: 3 additions & 0 deletions extra/swayimgrc.5
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ Configuration is defined in the \fB[gallery]\fR section.
.IP "\fBsize\fR = \fIPIXELS\fR"
Max size of the thumbnail in pixels, \fI200\fR by default.
.\" ----------------------------------------------------------------------------
.IP "\fBfill\fR = \fI[yes|no]\fR"
Fill the entire tile with thumbnail, \fIyes\fR by default.
.\" ----------------------------------------------------------------------------
.IP "\fBcache\fR = \fISIZE\fR"
Max number of thumbnails in cache, \fI0\fR to unlimit, \fI100\fR by default.
.\" ----------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 60ffa9d

Please sign in to comment.