warning reduction
This commit is contained in:
parent
b7a994ea08
commit
f7656110ae
1 changed files with 2 additions and 2 deletions
|
@ -116,8 +116,8 @@ generateThumb raw =
|
||||||
readImageBlob w raw
|
readImageBlob w raw
|
||||||
w1 <- getImageWidth w
|
w1 <- getImageWidth w
|
||||||
h1 <- getImageHeight w
|
h1 <- getImageHeight w
|
||||||
let h2 = 140
|
let h2 = 140 :: Int
|
||||||
let w2 = floor (fromIntegral w1 / fromIntegral h1 * fromIntegral h2 :: Double)
|
let w2 = floor (fromIntegral w1 / fromIntegral h1 * fromIntegral h2 :: Double) :: Int
|
||||||
resizeImage w w2 h2 lanczosFilter 1
|
resizeImage w w2 h2 lanczosFilter 1
|
||||||
setImageCompressionQuality w 95
|
setImageCompressionQuality w 95
|
||||||
setImageFormat w "png"
|
setImageFormat w "png"
|
||||||
|
|
Loading…
Reference in a new issue