diff options
author | OzoneGrif | 2020-02-02 08:20:09 +0100 |
---|---|---|
committer | GitHub | 2020-02-02 08:20:09 +0100 |
commit | db8ebac1fa405bbee7da15d45c7ba6cd736bfa02 (patch) | |
tree | 4a649fdab72304b4bf20ec84707390e88c981b0d /compiler/src/Processors.hs | |
parent | 0697693934c700f50bcc45ad58ab0b8f0370561c (diff) | |
parent | ce2f0262768bc3d56dd9a776a075c6ccf10a7ae3 (diff) | |
download | ldgallery-db8ebac1fa405bbee7da15d45c7ba6cd736bfa02.tar.gz |
Merge branch 'develop' into feature-thumbnail-resolution-index
Diffstat (limited to 'compiler/src/Processors.hs')
-rw-r--r-- | compiler/src/Processors.hs | 6 |
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 | ||
93 | type Cache = FileProcessor -> FileProcessor | 97 | type Cache = FileProcessor -> FileProcessor |