File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 2626 '' ;
2727 } ;
2828
29+ filter = lib . mkOption {
30+ type = lib . types . enum [
31+ "catmull-rom"
32+ "gaussian"
33+ "lanczos3"
34+ "nearest"
35+ "triangle"
36+ ] ;
37+ default = "lanczos3" ;
38+ example = "nearest" ;
39+ description = ''
40+ [Matugen](https://github.com/InioX/matugen)'s resize filter.
41+ '' ;
42+ } ;
43+
2944 polarity = lib . mkOption {
3045 type = lib . types . enum [
3146 "dark"
116131 nativeBuildInputs = [ pkgs . matugen ] ;
117132 env = {
118133 CONTRAST = toString cfg . colorGeneration . contrast ;
134+ FILTER = cfg . colorGeneration . filter ;
119135 IMAGE = cfg . image ;
120136 POLARITY = cfg . colorGeneration . polarity ;
121137 SCHEME = cfg . colorGeneration . scheme ;
128144 --include-image-in-json false \
129145 --json strip \
130146 --mode "$POLARITY" \
147+ --resize-filter "$FILTER" \
131148 --type "$SCHEME" \
132149 image \
133150 "$IMAGE" |
You can’t perform that action at this time.
0 commit comments