aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/Processors.hs
diff options
context:
space:
mode:
authorOzoneGrif2020-02-02 08:20:09 +0100
committerGitHub2020-02-02 08:20:09 +0100
commitdb8ebac1fa405bbee7da15d45c7ba6cd736bfa02 (patch)
tree4a649fdab72304b4bf20ec84707390e88c981b0d /compiler/src/Processors.hs
parent0697693934c700f50bcc45ad58ab0b8f0370561c (diff)
parentce2f0262768bc3d56dd9a776a075c6ccf10a7ae3 (diff)
downloadldgallery-db8ebac1fa405bbee7da15d45c7ba6cd736bfa02.tar.gz
Merge branch 'develop' into feature-thumbnail-resolution-index
Diffstat (limited to 'compiler/src/Processors.hs')
-rw-r--r--compiler/src/Processors.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/src/Processors.hs b/compiler/src/Processors.hs
index 9ddc6ee..fc719af 100644
--- a/compiler/src/Processors.hs
+++ b/compiler/src/Processors.hs
@@ -87,7 +87,11 @@ resizePictureUpTo maxResolution inputPath outputPath =
87 maxSize Resolution{width, height} = show width ++ "x" ++ show height ++ ">" 87 maxSize Resolution{width, height} = show width ++ "x" ++ show height ++ ">"
88 88
89 resize :: FileName -> FileName -> IO () 89 resize :: FileName -> FileName -> IO ()
90 resize input output = callProcess "magick" [input, "-resize", maxSize maxResolution, output] 90 resize input output = callProcess "magick"
91 [ input
92 , "-auto-orient"
93 , "-resize", maxSize maxResolution
94 , output ]
91 95
92 96
93type Cache = FileProcessor -> FileProcessor 97type Cache = FileProcessor -> FileProcessor