You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature 'indicate if file has preview' doesn't support search (/report) nor graph sharing api #1133
Ok, that is something for the future, but we can start by returning an empty thumbnails property or leaving it out when know we cannot generate thumbnails for the filetype. The client side can then check with item.hasOwnProperty('thumbnails') if it should try to generate an image.
now ... the question is if we should return the availabe thumbnails ... that could get expensive for large directories ...
well ... we could just fake the default thumbnail sizes and return presigned urls ...
One more thing I noticed, even if it doesn't make any difference in the client implementation, folders don't have the attr. Is this something that have been left out on purpose or do we want to add this to folders (hard coded 0), just for consistency reasons?
Activity
AlexAndBear commentedon Jun 27, 2025
cc @micbar
butonic commentedon Jun 27, 2025
in the graph api we could indicate that thumbnails can be generated by returning an empty thumbnails relation when the user expands it: https://learn.microsoft.com/en-us/graph/api/driveitem-list-thumbnails?view=graph-rest-beta&tabs=http#getting-thumbnails-while-listing-driveitems
We can even allow custom resize sizes and algorithms: https://video2.skills-academy.com/en-us/graph/api/driveitem-list-thumbnails?view=graph-rest-1.0&tabs=http#requesting-custom-thumbnail-sizes
The exmple uses
c300x400_crop. We could pass that to a thumbnailer service to allow whatever algorithm it supports: https://github.com/jameesjohn/imaginary?tab=readme-ov-file#supported-image-operations ... we could even add an ``libre.graph.thumbnail.filters` property to let the ui determine which filter to use ... say to create simple effects? or to add watermarks? depending on what the image service supports.Ok, that is something for the future, but we can start by returning an empty thumbnails property or leaving it out when know we cannot generate thumbnails for the filetype. The client side can then check with
item.hasOwnProperty('thumbnails')if it should try to generate an image.now ... the question is if we should return the availabe thumbnails ... that could get expensive for large directories ...
well ... we could just fake the default thumbnail sizes and return presigned urls ...
AlexAndBear commentedon Jun 28, 2025
One more thing I noticed, even if it doesn't make any difference in the client implementation, folders don't have the attr. Is this something that have been left out on purpose or do we want to add this to folders (hard coded 0), just for consistency reasons?
cc @micbar
dragonchaser commentedon Jul 4, 2025
needs equivalent implementation of https://github.com/opencloud-eu/reva/blob/9bc5e22b2eb5b511a6c78025611211ec85ca8589/internal/http/services/owncloud/ocdav/propfind/propfind.go#L1732-L1739
micbar commentedon Jul 4, 2025
And we need a libre graph api implementation