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 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/src') 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" -- cgit v1.2.3