diff options
author | pacien | 2020-01-05 10:43:30 +0100 |
---|---|---|
committer | pacien | 2020-01-05 10:43:30 +0100 |
commit | 1a0f4b17fc77c4b330c43185a15230e67116a3aa (patch) | |
tree | 4eed3493dfc9a195eacdd634bf58f9b7fc262e1d /compiler/src | |
parent | 7da7ae1848a23b13ec4b258fd9e714c0f4943850 (diff) | |
download | ldgallery-1a0f4b17fc77c4b330c43185a15230e67116a3aa.tar.gz |
compiler: rename max thumbnail size option
Diffstat (limited to 'compiler/src')
-rw-r--r-- | compiler/src/Compiler.hs | 2 | ||||
-rw-r--r-- | compiler/src/Config.hs | 4 |
2 files changed, 3 insertions, 3 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 = | |||
106 | let cache = if invalidateCache || rebuildAll then skipCached else withCached | 106 | let cache = if invalidateCache || rebuildAll then skipCached else withCached |
107 | 107 | ||
108 | let itemProc = itemProcessor (pictureMaxResolution config) cache | 108 | let itemProc = itemProcessor (pictureMaxResolution config) cache |
109 | let thumbnailProc = thumbnailProcessor (thumbnailResolution config) cache | 109 | let thumbnailProc = thumbnailProcessor (thumbnailMaxResolution config) cache |
110 | let galleryBuilder = buildGalleryTree dirProcessor itemProc thumbnailProc (implicitDirectoryTag config) | 110 | let galleryBuilder = buildGalleryTree dirProcessor itemProc thumbnailProc (implicitDirectoryTag config) |
111 | resources <- galleryBuilder (galleryName config) inputTree | 111 | resources <- galleryBuilder (galleryName config) inputTree |
112 | 112 | ||
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 | |||
44 | { galleryName :: String | 44 | { galleryName :: String |
45 | , ignoreFiles :: String | 45 | , ignoreFiles :: String |
46 | , implicitDirectoryTag :: Bool | 46 | , implicitDirectoryTag :: Bool |
47 | , thumbnailResolution :: Resolution | 47 | , thumbnailMaxResolution :: Resolution |
48 | , pictureMaxResolution :: Maybe Resolution | 48 | , pictureMaxResolution :: Maybe Resolution |
49 | } deriving (Generic, Show) | 49 | } deriving (Generic, Show) |
50 | 50 | ||
@@ -53,7 +53,7 @@ instance FromJSON CompilerConfig where | |||
53 | <$> v .:? "galleryName" .!= "Gallery" | 53 | <$> v .:? "galleryName" .!= "Gallery" |
54 | <*> v .:? "ignoreFiles" .!= ".^" | 54 | <*> v .:? "ignoreFiles" .!= ".^" |
55 | <*> v .:? "implicitDirectoryTag" .!= False | 55 | <*> v .:? "implicitDirectoryTag" .!= False |
56 | <*> v .:? "thumbnailResolution" .!= (Resolution 400 400) | 56 | <*> v .:? "thumbnailMaxResolution" .!= (Resolution 400 400) |
57 | <*> v .:? "pictureMaxResolution" | 57 | <*> v .:? "pictureMaxResolution" |
58 | 58 | ||
59 | 59 | ||