From 1a0f4b17fc77c4b330c43185a15230e67116a3aa Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 5 Jan 2020 10:43:30 +0100 Subject: compiler: rename max thumbnail size option --- compiler/src/Compiler.hs | 2 +- compiler/src/Config.hs | 4 ++-- design-notes.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs index 0132b1a..4f2093b 100644 --- a/compiler/src/Compiler.hs +++ b/compiler/src/Compiler.hs @@ -106,7 +106,7 @@ compileGallery inputDirPath outputDirPath rebuildAll = let cache = if invalidateCache || rebuildAll then skipCached else withCached let itemProc = itemProcessor (pictureMaxResolution config) cache - let thumbnailProc = thumbnailProcessor (thumbnailResolution config) cache + let thumbnailProc = thumbnailProcessor (thumbnailMaxResolution config) cache let galleryBuilder = buildGalleryTree dirProcessor itemProc thumbnailProc (implicitDirectoryTag config) resources <- galleryBuilder (galleryName config) inputTree diff --git a/compiler/src/Config.hs b/compiler/src/Config.hs index ca3259f..9bb2860 100644 --- a/compiler/src/Config.hs +++ b/compiler/src/Config.hs @@ -44,7 +44,7 @@ data CompilerConfig = CompilerConfig { galleryName :: String , ignoreFiles :: String , implicitDirectoryTag :: Bool - , thumbnailResolution :: Resolution + , thumbnailMaxResolution :: Resolution , pictureMaxResolution :: Maybe Resolution } deriving (Generic, Show) @@ -53,7 +53,7 @@ instance FromJSON CompilerConfig where <$> v .:? "galleryName" .!= "Gallery" <*> v .:? "ignoreFiles" .!= ".^" <*> v .:? "implicitDirectoryTag" .!= False - <*> v .:? "thumbnailResolution" .!= (Resolution 400 400) + <*> v .:? "thumbnailMaxResolution" .!= (Resolution 400 400) <*> v .:? "pictureMaxResolution" diff --git a/design-notes.md b/design-notes.md index 6c4f5b3..809fd36 100644 --- a/design-notes.md +++ b/design-notes.md @@ -72,7 +72,7 @@ compiler: ignoreFiles: .*\.txt # to ignore text files implicitDirectoryTag: false # default - thumbnailResolution: + thumbnailMaxResolution: width: 400 # default height: 400 # default -- cgit v1.2.3