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
use a content hash of the original file and the thumbnail size for the name of the thumbnail, render it on the fly, cache it on the server side and in the browser. If you don't already have the content hash you can only brute force thumbnails. Without authentication an attacker might be able to iterate over known hashes, which might leak compromising information.
optionally, to increase security, check if the user is logged in
optionally, to increase security even further, check file permissions and deny thumbnail access if the user has no access.
files app must support fetching file thumbnails for displaying in the current file list: Display previews web#276
optionally: we can provide a way to view bigger previews in the top of sidebar like we had in OC 10. Could be native or could be provided by an extension
later on: gallery view frontend extension that either provides another view of the file list (needs extension point to register multiple views for the file list => Allow providing alternative file list views web#2585)
For finding out about preview URLs, multiple options:
reuse the same URL / path we had in OC 10 (by convention, keeps compatibility)
expose thumbnail URL in PROPFILE/filelist responses in all supported protocols (maybe MSGraph has this already?)
As far as I can see it would require the router to let extensions register to dynamic routes, not only route prefixes. Here for example: /drives/{drive-id}/items/{item-id}/thumbnails
the service could have the ability to pregenerate thumbnails when passing in a folder URL. it should then recursively traverse it and create thumbnails of all known file types in there with a standard/configured size, so they are pre-cached. This would be useful for gallery-like usage.
do the pregeneration in a background job, or "just in time" after uploading
Activity
michaelstingl commentedon Oct 17, 2019
Previous pain or ideas around this topic…
HEIC(High Efficiency Image Coding) andHEVC(High Efficiency Video Coding), Add support heic core#30093, Feature request: HEIC support gallery#737, [iOS11] 3.6.2 can‘t display *.HEIC images ios-legacy#933michaelstingl commentedon Nov 11, 2019
@TheOneRing links for EXIF orientation madness:
Please check if this is properly handled by the library you're using.
felixboehm commentedon Nov 25, 2019
PR is here cs3org/reva#298
[-][reva] thumbnails[/-][+][Extension] thumbnails[/+]PVince81 commentedon Nov 27, 2019
On the front end side, the way I see it:
For finding out about preview URLs, multiple options:
DeepDiver1975 commentedon Nov 27, 2019
MS Graph API already has a Thumbnail spec
PVince81 commentedon Nov 28, 2019
Had a chat with @TheOneRing to understand how the current implementation of the thumbnail server works. As far as I understood:
butonic commentedon Nov 28, 2019
As @DeepDiver1975 mentioned we should make the thumbnail service serve the endpoints as exposed in the ms graph api https://docs.microsoft.com/en-us/graph/api/driveitem-list-thumbnails?view=graph-rest-1.0&tabs=http
PVince81 commentedon Nov 28, 2019
As far as I can see it would require the router to let extensions register to dynamic routes, not only route prefixes. Here for example: /drives/{drive-id}/items/{item-id}/thumbnails
PVince81 commentedon Nov 29, 2019
Further ideas:
michaelstingl commentedon Jan 20, 2020
Added support for modern media formats like HEIC & HEVC in #10 (comment)
Merge pull request #10 from owncloud/update-docs
Merge pull request #10 from owncloud/static-root-path
Merge pull request #10 from owncloud/release-0.3.0
Merge pull request #10 from owncloud/central-docs
Merge pull request #10 from owncloud/additions
- Generate certs if none configured (#10)
Merge pull request #10 from fossabot/master
wkloucek commentedon Dec 18, 2020
thumbnails extension is there. Some more to do here?
michaelstingl commentedon Dec 18, 2020
Link to qa/test results? Are my items from #10 (comment) already covered? Otherwise we'd need new issues…
refs commentedon Jan 11, 2021
I'd close this and take care of creating new issues addressing @michaelstingl comments 👍