From 757ee6f86eb2cab99b87ab6e51cd9b21d5b0f1e6 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 10 Nov 2017 10:47:53 +0100 Subject: [PATCH] Slightly bigger images for 1.0 ratio --- jobs/anime-images/anime-images.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/jobs/anime-images/anime-images.go b/jobs/anime-images/anime-images.go index 79430edf..87679642 100644 --- a/jobs/anime-images/anime-images.go +++ b/jobs/anime-images/anime-images.go @@ -66,9 +66,12 @@ func work(anime *arn.Anime) error { small := path.Join(os.Getenv("GOPATH"), "/src/github.com/animenotifier/notify.moe/images/anime/small/") largeSize := 250 - mediumSize := 150 + mediumSize := 142 smallSize := 55 + mediumSizeBonusLowDPI := 8 + smallSizeBonusLowDPI := 5 + webpQuality := 70 jpegQuality := 70 @@ -144,7 +147,7 @@ func work(anime *arn.Anime) error { &outputs.ImageFile{ Directory: medium, BaseName: anime.ID, - Size: mediumSize, + Size: mediumSize + mediumSizeBonusLowDPI, Quality: jpegQuality + qualityBonusLowDPI + qualityBonusMedium, }, &outputs.ImageFile{ @@ -156,7 +159,7 @@ func work(anime *arn.Anime) error { &outputs.ImageFile{ Directory: medium, BaseName: anime.ID, - Size: mediumSize, + Size: mediumSize + mediumSizeBonusLowDPI, Format: "webp", Quality: webpQuality + qualityBonusLowDPI + qualityBonusMedium, }, @@ -172,7 +175,7 @@ func work(anime *arn.Anime) error { &outputs.ImageFile{ Directory: small, BaseName: anime.ID, - Size: smallSize, + Size: smallSize + smallSizeBonusLowDPI, Quality: jpegQuality + qualityBonusLowDPI + qualityBonusSmall, }, &outputs.ImageFile{ @@ -184,7 +187,7 @@ func work(anime *arn.Anime) error { &outputs.ImageFile{ Directory: small, BaseName: anime.ID, - Size: smallSize, + Size: smallSize + smallSizeBonusLowDPI, Format: "webp", Quality: webpQuality + qualityBonusLowDPI + qualityBonusSmall, },