Arlodotexe / strix-music

Combine any music sources into a single library. It's your music. Play it your way.
http://www.strixmusic.com
138 stars 4 forks source link

Move image resizing from file scanner to a plugin #186

Closed Arlodotexe closed 2 years ago

Arlodotexe commented 2 years ago

Background

When we first implemented the file scanner and got it testing in the UI, we ran into issues with the UI freezing and stuttering due to loading so many images with broken virtualization.

After fixing virtualization, the performance was good, but not good enough. We decided to use ImageSharp to resize each image to a standard set of sizes and save them to disk, passing the saved file path as the image Uri.

The problem

While this works, it has issues

The solution

After #185 is completed, we should move all image processing from AudioMetadataScanner into a plugin, but without all the concurrency handling (1 image resize per OpenStreamAsync call).

Additional requirements: