This is one example:
https://wiki.contextgarden.net/Command/externalfigure
However, now I checked the source, and the image files are there... and
they are being correctly linked, but the image attributes width and height
are set to zero. Maybe something wrong with lazy loading?
Example in html code:
El vie, 22 ene 2021 a las 6:00,
Send ntg-context mailing list submissions to ntg-context@ntg.nl
To subscribe or unsubscribe via the World Wide Web, visit https://mailman.ntg.nl/mailman/listinfo/ntg-context or, via email, send a message with subject or body 'help' to ntg-context-request@ntg.nl
You can reach the person managing the list at ntg-context-owner@ntg.nl
When replying, please edit your Subject line so it is more specific than "Re: Contents of ntg-context digest..."
Today's Topics:
1. Missing images in Wiki? (Andres Conrado Montoya) 2. Re: Missing images in Wiki? (Taco Hoekwater) 3. new lmtx / fonts (Hans Hagen) 4. \doassign variable - updates not picked up (Werner Hennrich)
----------------------------------------------------------------------
Message: 1 Date: Thu, 21 Jan 2021 14:30:59 -0500 From: Andres Conrado Montoya
To: mailing list for ConTeXt users Subject: [NTG-context] Missing images in Wiki? Message-ID: Content-Type: text/plain; charset="utf-8" It seems a lot of image examples from the wiki are gone now. Most articles lost many images. Is this on purpose?
-- Andrés Conrado Montoya
On 22 Jan 2021, at 20:41, Andres Conrado Montoya Acosta
wrote: This is one example:
https://wiki.contextgarden.net/Command/externalfigure
However, now I checked the source, and the image files are there... and they are being correctly linked, but the image attributes width and height are set to zero. Maybe something wrong with lazy loading?
The remote cat was missing from ConTeXt’s image cache. I fixed that now by editing the source (added a space), which made the wiki rerun ConTeXt, and that in turn made ConTeXt re-fetch the url contents. The other images all load fine for me. Images for ‘<context>’ blocks can be a little tricky, because the wiki software caches them based on a hash of the block’s contents. So if something transient goes wrong in the ConTeXt processing but ConTeXt still outputs some sort of PDF, then that output will never get fixed unless you edit the wiki source again. That does not happen a lot, but it is likelier to happen with remote content. There are two ways around this: 1. edit the block source slightly, by adding a space or a % or something else that is harmless. That changes the hash key of the content, and the wiki will (probably) regenerate the graphic. 2. There is a ‘secret’ force attribute for <context>, but that should only be used to apply fixes like the one I did above, and it should be removed afterwards. That attribute bypasses the wiki caching altogether. But as that is really bad for the webserver’s performance, it should only be used if there is no other way. See also: https://wiki.contextgarden.net/Help:Context Best wishes, Taak — Taco Hoekwater E: taco@bittext.nl genderfluid (all pronouns)
participants (2)
-
Andres Conrado Montoya Acosta
-
Taco Hoekwater