version bump

This commit is contained in:
nek0 2016-08-30 15:11:02 +02:00
parent 0a45da609e
commit 7ec8c0c855
2 changed files with 4 additions and 4 deletions

View file

@ -156,9 +156,9 @@ generateThumbs path uId aId = do
oHeight = fromIntegral $ fromJust $ PM.lookup Height meta :: Int
tWidth = floor (fromIntegral oWidth / fromIntegral oHeight * fromIntegral tHeight :: Double)
tHeight = 230 :: Int
pWidth = 1380 :: Int
pScale = (fromIntegral pWidth :: Double) / (fromIntegral oWidth :: Double)
pHeight = floor (fromIntegral oHeight * pScale)
pHeight = 600 :: Int
pScale = (fromIntegral pHeight :: Double) / (fromIntegral oHeight :: Double)
pWidth = floor (fromIntegral oWidth * pScale)
tPix = scale (tWidth, tHeight) origPix
pPix = scale (pWidth, pHeight) origPix
liftIO $ saveJpgImage 95 tPath $ ImageRGBA8 tPix

View file

@ -1,5 +1,5 @@
name: eidolon
version: 0.0.7
version: 0.1.0.0
synopsis: Image gallery in Yesod
homepage: https://eidolon.nek0.eu
license: AGPL-3