🎨 Made OnlineCoverManager more general

- Does compositing of image with a blurred background
- Stretches the original image if it's not too much
- Handles images that are too wide and images that are too tall
- Removed ItchCoverManager
This commit is contained in:
GeoffreyCoulaud
2023-06-14 00:05:38 +02:00
parent 6dd8e3965f
commit 695cc88d76
5 changed files with 89 additions and 78 deletions

View File

@@ -50,7 +50,7 @@ class ItchSourceIterator(SourceIterator):
"game_id": self.source.game_id_format.format(game_id=row[0]),
"executable": self.source.executable_format.format(cave_id=row[4]),
}
additional_data = {"itch_cover_url": row[2], "itch_still_cover_url": row[3]}
additional_data = {"online_cover_url": row[3] or row[2]}
game = Game(values, allow_side_effects=False)
yield (game, additional_data)