aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/Processors.hs
diff options
context:
space:
mode:
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