anlumo / KaraokeV2

WIP
GNU Affero General Public License v3.0
2 stars 2 forks source link

Optimized web assets? #23

Open MacLemon opened 8 months ago

MacLemon commented 8 months ago

Story or task

As a user I want to have the UI load quickly.

We're displaying cover art in the UI. The quality spectrum of these cover files is quite broad.

Would it make sense to derive web-optimized images from the existing song images? Either by the importer or a separate process?

These derived images could be super-optimized in file size by ImageOptim or other software to make them as small as possible.

Which sizes and formats would make sense?

Notes

anlumo commented 8 months ago

https://pub.dev/packages/flutter_avif?

Would Flutter even support using multiple image formats and sizes depending on the device?

Yes, but I don't see the use case for that.

Does that really make transfers smaller/faster since it we'd need to provide a lot more HTML via tag instead of a single simple each.

Flutter doesn't use HTML, so there are no image tags.

anlumo commented 8 months ago

Task: convert all covers to JPEG and compress as necessary