Slightly bigger images for 1.0 ratio

This commit is contained in:
Eduard Urbach 2017-11-10 10:47:53 +01:00
parent 952a4d912e
commit 757ee6f86e

View File

@ -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/") small := path.Join(os.Getenv("GOPATH"), "/src/github.com/animenotifier/notify.moe/images/anime/small/")
largeSize := 250 largeSize := 250
mediumSize := 150 mediumSize := 142
smallSize := 55 smallSize := 55
mediumSizeBonusLowDPI := 8
smallSizeBonusLowDPI := 5
webpQuality := 70 webpQuality := 70
jpegQuality := 70 jpegQuality := 70
@ -144,7 +147,7 @@ func work(anime *arn.Anime) error {
&outputs.ImageFile{ &outputs.ImageFile{
Directory: medium, Directory: medium,
BaseName: anime.ID, BaseName: anime.ID,
Size: mediumSize, Size: mediumSize + mediumSizeBonusLowDPI,
Quality: jpegQuality + qualityBonusLowDPI + qualityBonusMedium, Quality: jpegQuality + qualityBonusLowDPI + qualityBonusMedium,
}, },
&outputs.ImageFile{ &outputs.ImageFile{
@ -156,7 +159,7 @@ func work(anime *arn.Anime) error {
&outputs.ImageFile{ &outputs.ImageFile{
Directory: medium, Directory: medium,
BaseName: anime.ID, BaseName: anime.ID,
Size: mediumSize, Size: mediumSize + mediumSizeBonusLowDPI,
Format: "webp", Format: "webp",
Quality: webpQuality + qualityBonusLowDPI + qualityBonusMedium, Quality: webpQuality + qualityBonusLowDPI + qualityBonusMedium,
}, },
@ -172,7 +175,7 @@ func work(anime *arn.Anime) error {
&outputs.ImageFile{ &outputs.ImageFile{
Directory: small, Directory: small,
BaseName: anime.ID, BaseName: anime.ID,
Size: smallSize, Size: smallSize + smallSizeBonusLowDPI,
Quality: jpegQuality + qualityBonusLowDPI + qualityBonusSmall, Quality: jpegQuality + qualityBonusLowDPI + qualityBonusSmall,
}, },
&outputs.ImageFile{ &outputs.ImageFile{
@ -184,7 +187,7 @@ func work(anime *arn.Anime) error {
&outputs.ImageFile{ &outputs.ImageFile{
Directory: small, Directory: small,
BaseName: anime.ID, BaseName: anime.ID,
Size: smallSize, Size: smallSize + smallSizeBonusLowDPI,
Format: "webp", Format: "webp",
Quality: webpQuality + qualityBonusLowDPI + qualityBonusSmall, Quality: webpQuality + qualityBonusLowDPI + qualityBonusSmall,
}, },