Skip to content

Thumbnails: Check <oc:has-preview> property - #217

Open
guruz wants to merge 1 commit into
mainfrom
feat-has-preview-thumbnails
Open

Thumbnails: Check <oc:has-preview> property#217
guruz wants to merge 1 commit into
mainfrom
feat-has-preview-thumbnails

Conversation

@guruz

@guruz guruz commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

...instead of assuming it from the mime type to be an image. This fixes (for example) preview for .txt files.

Found this thanks to this iOS(!) issue: opencloud-eu/ios#72

Introduced by @micbar in opencloud-eu/reva#214

...instead of assuming it from the mime type to be an image.
This fixes (for example) preview for .txt files
@guruz
guruz requested a review from wernrab August 20, 2026 17:01
@guruz

guruz commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

@zerox80 Aren't those x and y way too big?

Sample URL:

https://demo.opencloud.eu/dav/spaces/d21381aa-01dc-45cb-a5b8-e6880c47c954$4a67caa3-cff0-4899-a69d-816848d23b9d/Neue%20Datei.txt?x=1024&y=1024&c=dbf4efd4e5454eaa002f1434df768b2b&preview=1

Comes from buildPreviewUri function.

Screenshot 2026-08-20 at 18 58 00

web UI also uses high values though: &x=1000&y=1000

TODO: Find out why web UI uses &processor=fit

Are we potentially wasting bandwidth here both in App and Web UI @micbar ?

@wernrab wernrab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks consistent (besides the big x and y values discussed)

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.

2 participants