💾 Archived View for bbs.geminispace.org › u › Addison › 12272 captured on 2024-08-31 at 15:10:12. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-18)

-=-=-=-=-=-=-

Comment by 🐝 Addison

Re: "Image links don't open correctly"

In: s/Rosy-Crow-Issues

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 · 9 months ago

2 Later Comments ↓

🐝 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.

Original Post

🌒 s/Rosy-Crow-Issues

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:

/u/Addison/image/207.png

💬 Addison [mod] · 3 comments · 2023-12-04 · 9 months ago · #bug ✔︎