aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2020-02-02 20:58:10 +0100
committerpacien2020-02-02 21:20:47 +0100
commita524bc557ee154d5880153d9b8da680e0b5f3e85 (patch)
tree9412c5e5f2a37a26e059e65669cba699808bb3a7
parent31d16f6fb20eb4935fc75e83bc565070ba7e5656 (diff)
downloadldgallery-a524bc557ee154d5880153d9b8da680e0b5f3e85.tar.gz
compiler: tweak default thumbnail size
For better packing.
-rw-r--r--compiler/src/Config.hs2
-rw-r--r--example/gallery.yaml2
-rw-r--r--ldgallery.1.md2
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler/src/Config.hs b/compiler/src/Config.hs
index d670aae..4c9aa40 100644
--- a/compiler/src/Config.hs
+++ b/compiler/src/Config.hs
@@ -51,7 +51,7 @@ instance FromJSON CompilerConfig where
51 <*> v .:? "includedFiles" .!= ["*"] 51 <*> v .:? "includedFiles" .!= ["*"]
52 <*> v .:? "excludedFiles" .!= [] 52 <*> v .:? "excludedFiles" .!= []
53 <*> v .:? "tagsFromDirectories" .!= 0 53 <*> v .:? "tagsFromDirectories" .!= 0
54 <*> v .:? "thumbnailMaxResolution" .!= (Resolution 400 400) 54 <*> v .:? "thumbnailMaxResolution" .!= (Resolution 400 300)
55 <*> v .:? "pictureMaxResolution" 55 <*> v .:? "pictureMaxResolution"
56 56
57 57
diff --git a/example/gallery.yaml b/example/gallery.yaml
index dfb6265..ea23d8a 100644
--- a/example/gallery.yaml
+++ b/example/gallery.yaml
@@ -14,7 +14,7 @@ compiler:
14 14
15 thumbnailMaxResolution: 15 thumbnailMaxResolution:
16 width: 400 # default 16 width: 400 # default
17 height: 400 # default 17 height: 300 # default
18 18
19 pictureMaxResolution: 19 pictureMaxResolution:
20 width: 1024 20 width: 1024
diff --git a/ldgallery.1.md b/ldgallery.1.md
index 8784fb2..5612cbf 100644
--- a/ldgallery.1.md
+++ b/ldgallery.1.md
@@ -115,7 +115,7 @@ compiler.thumbnailMaxResolution.width
115: Maximum width in pixels of the item thumbnails, 400 by default. 115: Maximum width in pixels of the item thumbnails, 400 by default.
116 116
117compiler.thumbnailMaxResolution.height 117compiler.thumbnailMaxResolution.height
118: Maximum height in pixels of the item thumbnails, 400 by default. 118: Maximum height in pixels of the item thumbnails, 300 by default.
119 119
120compiler.pictureMaxResolution.width 120compiler.pictureMaxResolution.width
121: Maximum width in pixels of the picture items, unlimited by default. 121: Maximum width in pixels of the picture items, unlimited by default.