Generating image previews
Your application can generate preview thumbnails for media files using the File System - Generate Thumbnail action.
The action generates a thumbnail and returns it to the Thumbnail state as a base64-encoded string.
This allows you to quickly create small preview images for files such as photos or videos without needing to fully process or upload the original file.
This is useful for building file browsers, media libraries, upload previews, or any interface where users need to quickly recognize a file visually before opening it.
<figure><img src="https://909455594-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC8kwY8yODXmNxAtaN0Ej%2Fuploads%2FGY7mPDHHQUE3g1fUM9Vr%2Fimage.png?alt=media&token=49dcb378-2e44-4dae-a969-ed85d7ede5c6" alt=""><figcaption></figcaption></figure>
View an example in our Sandbox app.
https://bubble.io/page?id=deskifier-plugin-test&tab=Design&name=sandbox&type=page&elements=bTIla