๐พ Archived View for bbs.geminispace.org โบ s โบ Rosy-Crow-Issues โบ 42 captured on 2024-08-31 at 15:04:19. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2024-08-18)
-=-=-=-=-=-=-
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:
๐ Issue #42 in s/Rosy-Crow-Issues
๐ Addison [mod, ๐ฃ๏ธ developer]
2023-12-04 ยท 9 months ago
๐ Addison [OP/mod, ๐ฃ๏ธ developer] ยท 2023-12-04 at 09:36:
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 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, ๐ฃ๏ธ developer] ยท 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.