# Generating image previews

Your application can generate preview thumbnails for media files using the [File System - Generate Thumbnail](/deskifier/deskifier-bubble.io-docs/filesystem-element/actions.md#file-system-generate-thumbnail) action. \
\
The action generates a thumbnail and returns it to the [Thumbnail](/deskifier/deskifier-bubble.io-docs/filesystem-element/states.md#thumbnail) state as a base64-encoded strin&#x67;**.** \
\
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="/files/t6Swc2E0drc2TrTcahU6" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
View an example in our Sandbox app. \
\
<https://bubble.io/page?id=deskifier-plugin-test&tab=Design&name=sandbox&type=page&elements=bTIla>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/guides-and-examples/generating-image-previews.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
