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

Loading local images thumbnails #5401

Open
Omaaarz opened this issue Apr 29, 2024 · 0 comments
Open

Loading local images thumbnails #5401

Omaaarz opened this issue Apr 29, 2024 · 0 comments

Comments

@Omaaarz
Copy link

Omaaarz commented Apr 29, 2024

I was recently trying to use thumbnail API to load local media thumbnails which weren't actually loading a thumbnail but the full image. By exploring glide codebase I found that Glide is using ThumbFetcher to load media store thumbnails which is basically querying the thumbnails table as in here. MediaStore.Images.Thumbnails is already deprecated and thumbnail generation is currently done using a different flow which doesn't insert anything in the thumbnails table anymore, which would lead to having the thumbFetcher return null.

I believe the current implementation of ThumbFetcher should shift towards calling ContentResolver.loadThumbnail or ContentResolver.openTypedAssetFile to make sure that glide is handling the media store thumbnail requests correctly.

Please let me know your thoughts!

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

No branches or pull requests

1 participant