From c1e330eaf37cffa79e9576ad1847b3b3db36b9d6 Mon Sep 17 00:00:00 2001 From: Uwe Trottmann Date: Sat, 16 Nov 2024 08:33:02 +0100 Subject: [PATCH] ImageTools: increase preview resolution of episode image --- CHANGELOG.md | 4 ++++ .../seriesguide/settings/TmdbSettings.kt | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c12a0f8bed..77441c9648 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,10 @@ Releases marked with ๐Ÿงช (or previously with the "beta" suffix) were released o ## Version 2024.5 +### Unreleased + +* ๐Ÿ”ง Shows: increase preview resolution of episode image. + ### 2024.5.0 - 2024-11-06 ๐Ÿงช * ๐ŸŒŸ Movies: add link to all release dates. diff --git a/app/src/main/java/com/battlelancer/seriesguide/settings/TmdbSettings.kt b/app/src/main/java/com/battlelancer/seriesguide/settings/TmdbSettings.kt index 4c5adb2e3d..7766a4defb 100644 --- a/app/src/main/java/com/battlelancer/seriesguide/settings/TmdbSettings.kt +++ b/app/src/main/java/com/battlelancer/seriesguide/settings/TmdbSettings.kt @@ -21,7 +21,21 @@ object TmdbSettings { private const val KEY_TMDB_BASE_URL = "com.battlelancer.seriesguide.tmdb.baseurl" const val POSTER_SIZE_SPEC_W154 = "w154" const val POSTER_SIZE_SPEC_W342 = "w342" - const val BACKDROP_SMALL_SIZE_SPEC = "w300" + + /** + * As of 2024-11: + * + * - w300 (300 ร— 169 px) JPEG is around 9-16 kB + * - w780 (780 ร— 439 px) JPEG is around 30-70 kB + * - w1280 (1280 ร— 720 px) JPEG is around 60-140 KB + * + * Samples: + * + * - https://image.tmdb.org/t/p/original/8Tvnx22rzhwArofFPhmcfaBvgjN.jpg (smallest) + * - https://image.tmdb.org/t/p/original/j4WEC9Jh4AyXF8ynpX3pz633tse.jpg + * - https://image.tmdb.org/t/p/original/5Bh7EE3p6OOS0NzH22AE0N7DYO8.jpg (largest) + */ + const val BACKDROP_SMALL_SIZE_SPEC = "w780" private const val IMAGE_SIZE_SPEC_ORIGINAL = "original" const val DEFAULT_BASE_URL = "https://image.tmdb.org/t/p/"