Image Preview is a free, open-source plugin for Tavo. It has no server, no account and no analytics, and it never sends your chats, characters or personas anywhere.
Please report security issues privately: open the repository's Security tab and choose Report a vulnerability. Please don't post details in public issues or Discord before it's fixed. A short description and the steps to reproduce are enough.
Only the latest release is supported. If you installed v2.21.1 (including from the Tavo Hub), please update: it was taken down from GitHub and Discord so its security hardening could be finished. Versions before v2.26.1 could also be frozen for a long time by crafted text and had gaps in the link and download checks (see the changelog); please update. Versions before v2.27.1 could also be frozen by one crafted heading line (a # line followed by thousands of spaces) on the Character page or in Page view; please update.
| What | Where it goes |
|---|---|
| Saved images, pins, Gallery pictures (copies of the files you chose to add, with a simplified file name), a small preview of each (a shrunk JPEG made on your device) and the names of your collections, Recycle Bin, settings, game data, the list of recent pages in Page view (for each of the last 20 pages: its address, title, the first 1,500 characters of its text and up to 500 picture addresses), and the names and sizes of files you import from your device (only used to avoid saving the same file twice) | Stays on your device, inside Tavo |
| Quick Lookup text (only when you tap "Look up", up to 1,000 characters) | HTTPS to Google Translate, Lingva, MyMemory, dictionaryapi.dev, Wiktionary, Wikipedia, DuckDuckGo, Brave Search or Tavily. Privacy Mode blocks all of it |
| Brave Search API key (optional) | Only to api.search.brave.com, as a request header. Never in a URL, never to another host |
| Tavily API key (optional) | Only to api.tavily.com, as an Authorization request header. Never in a URL, never to another host. When you ask Tavily to read a page, that page's link is sent with it (at most twice: a normal read and, if that finds nothing, a deeper one; never for a page that came back as a "blocked" or "checking your browser" screen) |
| Images and pages you ask it to preview or save (including in Page view) | Downloaded from the address you gave, after a headers-only check sent to that same address (no cookies, no Referer, the body is never read), and checked again once they arrive. A page is read as inert text and its temporary file is deleted. That site sees your IP address, but no Referer |
| The open chat's character card, persona, lorebooks and messages | Read on your device only when you tap "Scan this chat for images", to find image links. Never sent anywhere and never changed |
| The open chat's character card (for the Character page) | Read on your device only when you open the Character page. Never sent anywhere and never changed. Its pictures load from the addresses the card lists, only while the page is open |
| Your agreement to the Terms of Use (a version number and a time) | Stays on your device, inside Tavo |
| The Diagnostics log in the Help guide (screen sizes, sideways scrolling and page width, how many pins were restored, how long ago the panel's previous page was alive, where the pins are a moment after a size change, a note when the page moves a pin or the screen view by itself or the TV effect starts on a pin, a note when a pin leaves the screen, changes size, or moves although none of its own settings changed, with the level and the kind of page part involved (such as "level 1 body display none"), long stalls of the page, the system freezing or resuming it, how the page was opened, memory numbers (the script heap where the browser says it, the size of the pin pictures at full size, how many parts the page has), timings, how a page was read in Page view (counts and a short word such as "app shell" or "blocked screen"), what Tavily answered (a count or an HTTP code); never a link or chat text) | Kept in the page's memory (the last 80 lines) and never sent. A short copy of its last lines is also kept on your device (next row). It goes to your clipboard only when you tap Copy |
| A small note of how many pins were on screen and when the panel's page was last alive (a count and a time) | Kept in the page's session storage on your device so pins can come back quietly after a page reload. Never sent anywhere, never saved in Tavo's variables, and it holds no link, picture name or chat text |
| A short "black box" note: a copy of the last 14 Diagnostics lines, how many pins were on screen, times and a few memory numbers | Kept in the page's browser storage on your device (local and session storage) so that a page that is started again can show what the last page saw. Only the Diagnostics code writes it; it is read back once when the page starts, ignored when it is older than an hour or does not have the expected shape, and replaced as the page runs; a line of it that looks like a link is not printed. Never sent anywhere, never saved in Tavo's variables, and it holds no link, picture name or chat text |
| A card's own picture (its profile picture), when you tap Save preview or Save to device | Read from the app's own address inside Tavo (no internet is used), checked to start like a picture, refused over 25 MB, and kept as a copy on your device. Saving to your device holds the picture in memory once while it is handed to Tavo's save sheet under a name made from the card's title. Nothing is sent anywhere |
| Everything else in Tavo (other chats, your library, other settings) | Never read |
- Links: only public
http(s)addresses are opened or downloaded.localhost, private and link-local ranges,*.localand other intranet-style names, names that spell out a private address (for example192-168-1-1.sslip.io), well-known wildcard-DNS domains (nip.io,sslip.io,localtest.meand similar), IPv6 literals, addresses with a username/password and non-web schemes (javascript:,intent:,file:,data:other than images) are refused. - No unsafe HTML: every piece of stored, downloaded or typed text is escaped before it is shown. Automated tests feed hostile names, links and saved data through every screen.
- Added games: run in a sandbox with only
allow-scripts(no same-origin access, popups, forms, downloads or navigation) and a Content-Security-Policy that blocks all network access. Messages from a game are accepted only from its own frame and reduced to a number or a small settings object. - Bounded work: pasted text is capped and scanned in one linear pass (so is every other check run over card, lorebook, message or page text: a crafted 300,000-character text is handled in under a second in tests), Extract shows at most 200 links, lookups are capped at 1,000 characters, image downloads time out after 45 seconds and web page previews after 30, at most 30 images can be pinned at once, and the Saved Previews shelf draws 200 at a time.
- No outside code: the package loads no scripts, fonts or styles from the internet and has no dependencies.
- Chat scan: manual only (never runs by itself), read-only, capped (only the newest 5,000 messages are requested from Tavo, 6 MB of text, 200 tiles), and its results follow the same link rules as everything else.
- What may be downloaded: only images, GIFs and web pages. Videos, music, archives, apps, documents, fonts and model files are refused by their file ending before anything is fetched. For other links, and for links that end like an image, a headers-only request asks the link's own server what it is and how big it is (no body, no cookies, no Referer): answers that are not an image or a web page, and oversized ones (images over 50 MB, pages over 6 MB), are refused. If the server won't say, an oversized web page is discarded unread and an oversized image is deleted after it arrives. Every saved image is then checked again once it has arrived: a link without a file ending must start like a picture, for every other link the web engine has to accept the saved file as a picture (if it gives no answer in time the file is kept), and a
data:image must start like a picture. Anything else is deleted at once, even if the server called it an image. - Character page: read-only and manual. Text is turned into a short allow-list of plain elements and never inserted as HTML; scripts, frames, forms, event handlers and links are dropped, and links become pills that open Page view. A card's own look is carried over only as plain numbers and keywords that are rebuilt, never copied as written: text colours, backgrounds and gradients, borders, rounded corners, spacing, side-by-side rows, centered text, text sizes, bold, italic, underline, letter spacing, line height, upper/lower case, dimming (never below 45%) and soft text shadows. A picture address (
url()), positioning, z-index, transforms, animation, filters, clipping anddisplay: noneare never carried; text a card tries to hide (zero size, see-through, a box too narrow to hold words) is shown anyway; and the text colour is checked against the background it lands on (a colour that can't be read is replaced, and a gradient no text can be read on becomes its average colour). Rows always wrap, the sideways spacing of nested boxes is capped and at most 600 boxes are decorated. A card's collapsible parts (details) are rebuilt as plain collapsible elements: closed unless the card saysopen, at most 80 of them, their nesting limited, with no attribute of the card (id, class, handlers) copied; a picture inside a part's title only opens or closes the part. Pictures must pass the link rules (or be an embedded PNG, JPEG, GIF, WebP, AVIF or BMP, never SVG). Limits: 300,000 characters per field and 100 pictures, and a card made of tens of thousands of tags, or nested hundreds deep, is shown as plain words. Automated tests feed hostile cards, and thousands of random hostile style strings, through it and check that only allow-listed values come out. - A card's own picture (Save): only an address inside the app itself is read this way, and only when you tap Save preview or Save to device. It has to be relative or start with the app's own address. Another scheme or host (a web address follows the link rules above instead),
.., encoded dots or slashes, backslashes, control characters, paths into the plugin's own files or scripts, and anything over 2,000 characters are never read this way. What is read must start like a picture (otherwise it is refused) and be 25 MB or less (checked from the size header before the body is read, and again after). An address that is neither a web link, a picture inside the link, nor a picture of the app is refused before anything is asked for or written. - Page view: manual only. The page is downloaded to a temporary file, read with an inert parser (nothing in it runs, loads or is inserted as HTML), shown as plain elements, and the temporary file is deleted. Ads, trackers and one-pixel images are counted, never kept; its pictures follow the same link rules. Pages over 6 MB are refused or discarded unread, and only the first 3,000,000 characters are read. For Image Chest links the picture list inside the page's data is read with a JSON parser (nothing in it runs), every address in it goes through the same link rules, at most 3,000 entries are looked at and 500 pictures kept, and anything unexpected is ignored. On a page with few pictures of its own (up to 3) and hardly any words (under 300 characters), the JSON the page carries (a JSON block such as Next.js's data, a JSON-LD block, Inertia's data, or a line like
window.__INITIAL_STATE__ = {...}, which is cut out with one scan of at most 1,500,000 characters and never evaluated) is read the same way: with a JSON parser, nothing in it runs, at most 16 pieces and 3,000,000 characters, 40,000 values looked at, 16 levels deep, 200 pictures kept, every address through the same link rules, an address with no picture file ending only under a picture-like name in a picture-like place (at most 60), and anything unexpected ignored. A "blocked" or "checking your browser" screen is recognised from the page's title and visible words only (never from its scripts), reported as such, and its link is not passed to Tavily. Pictures are shown 80 at a time. - Gallery: it only works on files you pick yourself in Tavo's own file picker, and only after you agree to the Terms. Each chosen file is copied once into Tavo's storage on your device (no network is used), its first bytes must be a real picture (otherwise it is skipped), files over 25 MB are skipped, and the copy gets a file name rebuilt from plain letters and numbers, so nothing in a file name can run, leave its folder or be read as markup. A picture is told apart from a copy by a short hash of its full file name (so names in any language work) plus its size, and a move merges a picture into another only if the two files are identical byte for byte. The small previews are drawn on your device with the browser's own picture decoder (no network), one picture at a time; a picture of more than 100 megapixels is never drawn, and pinning a still JPEG photo bigger than about 1,600 pixels shrinks the pinned copy the same way. Your original files are never read again, changed or deleted. Removing a picture or a collection deletes only Image Preview's copy and its preview, after you confirm, and only what you picked in the list you are looking at is acted on (changing the search or the collection clears the selection); a preview whose picture is gone is cleaned up, but only after that place was read completely. An add is done one file at a time, shows a space warning first when it will take 200 MB or more, and can be stopped at any time; at most 40,000 gallery files (pictures and previews) are listed. The picture count it shows is the real list of files, not a separate record that could go out of step.
- Storage manager: manual only, and behind the Terms gate like every other screen. It looks only for Image Preview's own files and settings (recognised by name; at most 8,000 files per place are looked at), shows exactly what a clean-up will remove before it runs, and asks for an extra tick before the Recycle Bin is emptied, because that can't be undone. Leftover temporary files are removed only when they are provably old (by the time in their name and by when they were last touched); anything touched lately is kept. It sends nothing anywhere.
- Terms of Use gate: nothing opens, scans, restores or tidies up until the Terms are agreed to (a version number and a time, stored on your device). The plugin's internal events are checked against it too, and older copies of the plugin's panel that are still alive in the page cannot react to them. A copy of the panel whose page is gone ignores the events too, and a menu action that nobody answers tells you the panel isn't ready.
- Least privilege: the plugin's permissions are
file,network,variable,inputandmessage(read-only use). It doesn't create, edit or delete characters, personas, chats or presets.
- Names that spell a private address (like
192-168-1-1.sslip.io) are refused, but a public name whose own DNS record points at a private address, and a redirect from a public address to a private one, can't be detected by the plugin itself. - The lookup services above can see the text you send them. Use Privacy Mode if that matters.
- The Gallery keeps copies of the files you add, so it uses space, it cannot notice files that appear, change or disappear on your phone afterwards, and when adding, two different pictures with the same full file name and the same size count as one. The readable part of a file name is reduced to plain letters and numbers, so a name in another script leaves it blank (the picture is still there and is still told apart by the hash of its full name). Image Preview cannot see how full your phone is, so a very big add asks first. Each picture also keeps a small preview of about 10 KB.
- Tavo's file storage, where the Gallery's pictures and previews live, can be read by other scripts that run inside Tavo (for example JavaScript in a character card, or another plugin); the Gallery cannot hide them from those scripts. Keep card JavaScript on only for cards you trust.
- Scripts running on the same chat page (for example inside a character card) can trigger the plugin's eight internal events (open the Recycle Bin, reset the floating button, show the Extract picker, start a chat scan, open the Character page, open Page view for a link, open the Storage manager, open the Image Preview menu). Until the Terms are agreed to they only ask for the agreement, except resetting the floating button and showing the menu's list, which change nothing but the button's place and what is shown (every tool in the menu still asks for the agreement first). None of them can make the plugin save, delete or send anything on their own; a scan or an Extract only opens the picker for you to look at, the Character page only shows the open card, Page view only downloads and shows a public page (the site sees your IP address) until you tap Save, and the Storage manager only opens its screen: nothing is removed until you confirm a clean-up.
- The Diagnostics log lives in the page's memory (numbers and timings only, never a link or chat text), so other scripts that run on the same chat page, such as JavaScript in a character card, could read it. Its short copy (the "black box" note) is kept in the page's browser storage, so other scripts that share that storage could read it the same way. Nothing in either names a picture, a chat or a person; they hold numbers, short words and the names of page parts such as "body".
- Diagnostics can only report what the page itself can see. A picture that goes away only in the phone's drawing of the screen leaves no line of its own; the memory numbers and the stall lines are there to help tell. It is a way to look for a cause, not a promise to find one.
- Saving a picture to your device holds it in memory once, as text, while it is handed to Tavo's save sheet under its new name. A picture over 25 MB is handed over as a file under its old name instead, so very large files never pass through memory this way.
- The small note of the pin count and time lives in the page's session storage (a count and a time only), so other scripts that run on the same chat page, such as JavaScript in a character card, could read it. It names no picture, chat or person.
- The plugin's saved data lives in Tavo's variable storage. That includes the web addresses of saved images, the names of files you import, the names of your Gallery collections and the optional Brave and Tavily keys (as plain text). Whether other scripts can read it depends on Tavo. If you use a key, use a free one you can revoke.
- The games' network block relies on the app's built-in web engine honouring Content-Security-Policy, which current Android WebView does.
- The headers-only check goes to the link's own server, and some servers don't answer it. The plugin can't cancel a download once Tavo has started it, so a server that hides its size could still use some bandwidth before an oversized file is discarded, and a file that arrives and isn't a picture is deleted at once but has still been downloaded.
- Thumbnails found by a scan or an extract, and the pictures on the Character page, load from the web, but only the ones you can see, and without a Referer. The site hosting an image can still see your IP address, and a character card can list images on a server its author controls.
- Because a card's look is now carried over, a card can draw boxes that look like buttons, warnings or system messages. Nothing a card draws can be tapped (only link pills and pictures can), but a drawing can still mislead, as in any chat. The text stays readable, but how a card looks is the card's own choice.
- Page view reads what a page sends. A site that draws its pictures with its own scripts, and does not also carry them as data inside the page, shows only its preview picture (Page view says so); no script of any page is ever run. Image Chest and the general page-data reader depend on the formats those sites use today and may need an update if a site changes them. Pictures found in a page's data are what the page lists there: they can include pictures that are not its main content (banners, related items), so Page view marks them "from the page's own data". Page view itself never tries to get around a site that blocks apps such as this one (no changed headers, no retries). A "blocked" or "checking your browser" screen is recognised from common wording (the page's title and visible words); a screen worded in some other way can look like an empty page, and a site that refuses the download outright (no page comes back) looks like any other failed download. In both cases, with a Tavily key set, Page view asks Tavily to read the page, as before.
Only install .tpg files from this repository's Releases page and compare the SHA-256 shown beside the file. A copy from anywhere else could have been modified. After updating, close Tavo completely and open it again once.