diff options
author | pacien | 2020-01-27 14:29:47 +0100 |
---|---|---|
committer | pacien | 2020-01-29 22:08:43 +0100 |
commit | c05cbe525ad44273cc1b9b58549af757f549dcb7 (patch) | |
tree | a1b697539fa11574dee8e84e7774a17d1961501e /compiler/src/Compiler.hs | |
parent | e91065602eeeebef236dae29e67d8e3334ab4029 (diff) | |
download | ldgallery-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/Compiler.hs')
-rw-r--r-- | compiler/src/Compiler.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/src/Compiler.hs b/compiler/src/Compiler.hs index aca96bc..27598b7 100644 --- a/compiler/src/Compiler.hs +++ b/compiler/src/Compiler.hs | |||
@@ -130,9 +130,9 @@ compileGallery inputDirPath outputDirPath rebuildAll = | |||
130 | 130 | ||
131 | itemProcessor config cache = | 131 | itemProcessor config cache = |
132 | itemFileProcessor | 132 | itemFileProcessor |
133 | (pictureMaxResolution config) (jpegExportQuality config) cache | 133 | (pictureMaxResolution config) cache |
134 | inputDirPath outputDirPath itemsDir | 134 | inputDirPath outputDirPath itemsDir |
135 | thumbnailProcessor config cache = | 135 | thumbnailProcessor config cache = |
136 | thumbnailFileProcessor | 136 | thumbnailFileProcessor |
137 | (thumbnailMaxResolution config) (jpegExportQuality config) cache | 137 | (thumbnailMaxResolution config) cache |
138 | inputDirPath outputDirPath thumbnailsDir | 138 | inputDirPath outputDirPath thumbnailsDir |