Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proof-of-concept of indicating image quality in the song list. #255

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bohning
Copy link
Owner

@bohning bohning commented Jul 1, 2024

This addresses #209 .

This reads out the image resolution of cover and background files and displays the quality according to some prefined thresholds via colored check marks in the respective song table columns. If the cover images are non-square or the background images are non-16:9-widescreen format, this is additionally indicated by a small exclamation mark on the check mark icon.

While this works as expected, it is highly inefficient because the image files are read on the fly. It would be much better to store the image dimensions in the meta file when downloading and simply use that information.

The inefficiency is doubled as the image dimensions are determined twice, once to determine the icon to display, a second time to determine the appropriate tooltip.

image

This reads out the image resolution of cover and background files and displays the quality according to some prefined thresholds via colored check marks in the respective song table columns. If the cover images are non-square or the background images are non-16:9-widescreen format, this is additionally indicated by a small exclamation mark on the check mark icon.

While this works as expected, it is highly inefficient because the image files are read on the fly. It would probably be better to store the image dimensions in the meta file and simply use that information.

The inefficiency is doubled as the image dimensions are determined twice, once to determine the icon to display, a second time to determine the appropriate tooltip.
@bohning bohning requested a review from RumovZ July 1, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant