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

Give preference to images for autogenerated thumbnails #1598

Open
ajkiessl opened this issue Sep 26, 2024 · 0 comments
Open

Give preference to images for autogenerated thumbnails #1598

ajkiessl opened this issue Sep 26, 2024 · 0 comments

Comments

@ajkiessl
Copy link
Collaborator

ajkiessl commented Sep 26, 2024

We select the last thumbnail from an array of thumbnail urls generated for collections and works when setting the autogenerated thumbnail. So, the last file uploaded will contain the thumbnail used. Since it is preferred that an uploaded image is used as the thumbnail, see if there is a way to give preference to images. The thumbnail urls should be attached to FileResource objects, where I believe you can determine the filetype/extension. This could help us identify if the thumbnail is for an image — or something else.

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