changed preview images to be of 1380px fixed width. also version bump of yesod-newsfeed.

This commit is contained in:
nek0 2015-10-05 23:35:14 +02:00
parent 8c28f8b26e
commit 5e877fa287
13 changed files with 5 additions and 5 deletions

View file

@ -133,8 +133,8 @@ generateThumb path userId albumId = do
h1 <- getImageHeight w
let h2 = 230
let w2 = floor (fromIntegral w1 / fromIntegral h1 * fromIntegral h2 :: Double)
let h3 = h1 `div` 2
let w3 = w1 `div` 2
let w3 = 1380
let h3 = floor (fromIntegral h1 / fromIntegral w1 * fromIntegral w3 :: Double)
setImageAlphaChannel w deactivateAlphaChannel
setImageAlphaChannel p deactivateAlphaChannel
setImageFormat w "jpeg"

View file

@ -39,8 +39,8 @@ main = do
readImage w (decodeString $ tail $ B.unpack path)
w1 <- getImageWidth w
h1 <- getImageHeight w
let w2 = w1 `div` 2
let h2 = h1 `div` 2
let w2 = 1380
let h2 = floor (fromIntegral h1 / fromIntegral w1 * fromIntegral w2 :: Double)
setImageAlphaChannel w deactivateAlphaChannel
setImageFormat w (T.pack "jpeg")
resizeImage w w2 h2 lanczosFilter 1

View file

@ -112,7 +112,7 @@ library
, yesod-markdown >= 0.10
, blaze-markup >= 0.7
, wai >= 3.0
, yesod-newsfeed >= 1.4
, yesod-newsfeed >= 1.5
, unix >= 2.7
-- for Migrations
, HDBC

0
static/css/images/loader.gif Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

0
static/css/images/overlay.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

0
static/fonts/FontAwesome.otf Normal file → Executable file
View file

0
static/fonts/fontawesome-webfont.eot Normal file → Executable file
View file

0
static/fonts/fontawesome-webfont.ttf Normal file → Executable file
View file

0
static/fonts/fontawesome-webfont.woff Normal file → Executable file
View file

0
static/img/album.jpg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
static/img/bg.jpg Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 296 KiB

After

Width:  |  Height:  |  Size: 296 KiB

0
static/img/glyphicons-halflings-white.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 8.6 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

0
static/img/glyphicons-halflings.png Normal file → Executable file
View file

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB