💾 Archived View for bbs.geminispace.org › u › Addison › 12272 captured on 2024-07-09 at 05:10:29. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-12-28)
-=-=-=-=-=-=-
Re: "Image links don't open correctly"
I've noticed this on different hosts, so I do not think it's an incorrect MIME type.
🐝 Addison [OP/mod, 🗣️ developer]
2023-12-04 · 7 months ago
🐝 Addison [OP/mod] · 2023-12-04 at 17:47:
This happens because the inline images are displayed using base64-encoded data URLs. Clicking on them tries to open the data itself (the contents of the image) as a new page.
🐝 Addison [OP/mod] · 2024-01-06 at 22:01:
Correction: this *actually* happens because fetching images inline caches them in the same place that page contents are cached.
When opening the image link, the app doesn't examine the URL's extension before attempting to the URL's a cached data. It assumes that whatever is cached for a given URL is a gemtext page, so it tries to load the image as a gemtext page.
With inline images enabled, clicking an image in order to open it results in the image being incorrectly shown as garbage text. Here is an image to test with:
💬 Addison [mod] · 3 comments · 2023-12-04 · 7 months ago · #bug ✔︎