amugofjava / anytime_podcast_player

Simple, easy to use Podcast player app written in Flutter and Dart.
BSD 3-Clause "New" or "Revised" License
377 stars 99 forks source link

Thumbnail image quality is drastically reduced after latest updates #29

Closed erdemyerebasmaz closed 3 years ago

erdemyerebasmaz commented 3 years ago

Podcast list items and episode tiles thumbnail image quality is reduced after latest updates.

amugofjava commented 3 years ago

Hi @erdemyerebasmaz,

This only happens when using PodcastIndex as the search provider. The issue here is that the iTunes API includes pre-scaled thumbnail images within its search results; PodcastIndex search returns links to the podcasts, but does not itself provide thumbnail images. The the only option we have is to use the full-size artwork image provided in the podcast RSS. These are high-resolution images which then need to be scaled down to 60w and cached in order to be displayed as a thumbnail image. Whilst it is possible to use the full size image as a thumbnail the additional processing and RAM overhead results in a significant drop in performance and frequent crashes as the GC cannot free enough memory to accommodate the images.

I am investigating options to get around this including recent updates to the Flutter cache manager.

amugofjava commented 3 years ago

I have set some of the images to a fixed size. This should improve the thumbnail quality and also prevent flickering on the hero image where the cached image manager was attempting to process different sized images for every frame. Still work in progress, but hopefully this is at least improved.

erdemyerebasmaz commented 3 years ago

It definitely is less pixelated and readability is on acceptable levels now, thank you 🙏