aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/Config.hs
diff options
context:
space:
mode:
authorpacien2020-01-27 14:29:47 +0100
committerpacien2020-01-29 22:08:43 +0100
commitc05cbe525ad44273cc1b9b58549af757f549dcb7 (patch)
treea1b697539fa11574dee8e84e7774a17d1961501e /compiler/src/Config.hs
parente91065602eeeebef236dae29e67d8e3334ab4029 (diff)
downloadldgallery-c05cbe525ad44273cc1b9b58549af757f549dcb7.tar.gz
compiler: switch to imagemagick
Use ImageMagick to resize images instead of JuicyPixels, using the superior Lanczos resampling and cutting memory usage. This requires ImageMagick to be installed on the host system and the `magick` executable to be present in the PATH. GitHub: closes #49
Diffstat (limited to 'compiler/src/Config.hs')
-rw-r--r--compiler/src/Config.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/src/Config.hs b/compiler/src/Config.hs
index 4446c14..d670aae 100644
--- a/compiler/src/Config.hs
+++ b/compiler/src/Config.hs
@@ -41,7 +41,6 @@ data CompilerConfig = CompilerConfig
41 , tagsFromDirectories :: Int 41 , tagsFromDirectories :: Int
42 , thumbnailMaxResolution :: Resolution 42 , thumbnailMaxResolution :: Resolution
43 , pictureMaxResolution :: Maybe Resolution 43 , pictureMaxResolution :: Maybe Resolution
44 , jpegExportQuality :: Int
45 } deriving (Generic, Show) 44 } deriving (Generic, Show)
46 45
47instance FromJSON CompilerConfig where 46instance FromJSON CompilerConfig where
@@ -54,7 +53,6 @@ instance FromJSON CompilerConfig where
54 <*> v .:? "tagsFromDirectories" .!= 0 53 <*> v .:? "tagsFromDirectories" .!= 0
55 <*> v .:? "thumbnailMaxResolution" .!= (Resolution 400 400) 54 <*> v .:? "thumbnailMaxResolution" .!= (Resolution 400 400)
56 <*> v .:? "pictureMaxResolution" 55 <*> v .:? "pictureMaxResolution"
57 <*> v .:? "jpegExportQuality" .!= 80
58 56
59 57
60data GalleryConfig = GalleryConfig 58data GalleryConfig = GalleryConfig