💾 Archived View for bbs.geminispace.org › u › skyjake › 20632 captured on 2024-12-17 at 15:26:35. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Inline images are scaled to the paragraph width. There is a (fixed) maximum scaling factor to prevent small/narrow images from becoming too large.
There is currently no way to control the image scaling, for example to force a 1:1 size. This has been requested as a feature and could be a site-specific setting, for instance.
To put images side-by-side, you'd have to compose them on serverside.
You can use the "data:" URI scheme to store images inside link lines. These can be displayed automatically (Prefs > Content > Open Images in Data URLs). However, you'll probably need to increase the maximum URL size (Prefs > Network) so you can actually fit meaningfully large images in the URLs.
If you want to see a demo of that, set the URL size to 32768 and visit my YLE teletext pages (I use this for my daily news, among other things):
Oct 10 · 2 months ago
🚀 stack [OP] · Oct 10 at 04:39:
Thank you. Fixing a 1:1 size would definitely help displaying certain kinds of game or puzzle graphics... In-link images are really interesting but still no way to fix the size...
I guess I will try to squeeze more from Unicode glyphs for now...
🚀 stack [OP] · Oct 10 at 17:22:
About those inlined URL images... How do you encode them?
@stack Base64 data URIs. They're formatted like:
data:mime/type;base64,theFileEncodedAsBase64==
🚀 stack [OP] · Oct 11 at 01:39:
As gata urls go, could you clarify:
Am I correct? Are there any other options?
🕹️ skyjake [mod...] · Oct 11 at 04:08:
Yes, those are all correct. There is no difference between linking to an image file via a regular Gemini URL and linking to an image using a data URI. When the link is opened in the latter case, the data is just decoded from the URI itself instead of loading from a file.
There is no other way to display images in Lagrange, so no there aren't any options to control the appearance further.
Note that not everyone will use Lagrange (I do not use Lagrange), nor will necessarily use one that can display pictures directly (some might require an external program). Some programs might display pictures in a different way, e.g. using a different logic to decide their size.
Images — I'm thinking of a puzzle game with images. What is the logic Lagrange uses to size images? Is there a way to native-size images? I assume there is no way to display multiple images side-by-side? I remember there was a setting to autoload and inline images. Is it gone? It would be really annoying to have to click on the image link every move... Thanks