Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/appwrite/mod.ts>Storage#getFilePreview

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
method Storage.prototype.getFilePreview
Re-export
import { Storage } from "https://deno.land/x/appwrite@0.0.2/mod.ts";

Get File Preview

Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image.

Parameters

fileId: string

fileId

optional
width: number = [UNSUPPORTED]

width

optional
height: number = [UNSUPPORTED]

height

optional
quality: number = [UNSUPPORTED]

quality

optional
background: string = [UNSUPPORTED]

background

optional
output: string = [UNSUPPORTED]

output

Returns

Promise<string>

Promise