Expand description
Nextcloud Preview and Thumbnail API client and domain types.
Nextcloud provides an endpoint for generating on-demand file previews and thumbnails
at /core/preview.png (routed via /index.php/core/preview.png).
PreviewClient— asynchronous client for fetching image previews.PreviewOptions— builder for dimension, aspect ratio, and mode parameters.PreviewMode— scaling mode (CoverorFill).
Official Nextcloud Preview endpoint:
GET /core/preview.png?fileId={fileId}&x={x}&y={y}&a={a}&mode={mode} or
GET /core/preview.png?file={filePath}&x={x}&y={y}.
Structs§
- Preview
Client - Client for fetching image previews and thumbnails from Nextcloud.
- Preview
Options - Parameters for generating a thumbnail or preview image.
Enums§
- Preview
Mode - Scaling mode for generating previews.
Constants§
- PREVIEW_
ENDPOINT - Relative path to Nextcloud’s preview endpoint beneath
/index.php.