Thanks for this code Hraban. I tried this last night and it worked really well. I did have one stumbling block when I noticed that those image files with a space in their names were not found, however renaming without a space solved the problem. Is this a bug or a feature? Thanks Keith McKay On Thu, 1 Sep 2022, 09:52 Henning Hraban Ramm via ntg-context, < ntg-context@ntg.nl> wrote:
Am 01.09.22 um 10:44 schrieb juh+ntg-context--- via ntg-context:
Hi,
what is resolution meant to do?
Whatever I insert as resolution, I get no change.
\setupexternalfigure[location={default,local},resolution=30] \starttext \externalfigure[hacker] \stoptext
What am I missing?
The resolution parameter is still not used by default ConTeXt, sorry.
But you can use it with the attached lua file like:
\loadluafile[grph-downsample] \doifmodeelse{print}{% \def\Resolution{300} }{% \def\Resolution{96} }%
\setupexternalfigures[ %directory={./Logos,img}, conversion=lowres.jpg, resolution=\Resolution, ]
Hraban
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________