Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-02 Thread Henning Hraban Ramm via ntg-context
Am 02.09.22 um 10:39 schrieb Keith McKay via ntg-context: 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

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-02 Thread Keith McKay via ntg-context
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

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread juh+ntg-context--- via ntg-context
Am 01.09.22 um 15:04 schrieb Henning Hraban Ramm via ntg-context: Am 01.09.22 um 13:43 schrieb juh+ntg-context--- via ntg-context: Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context: \loadluafile[grph-downsample] \doifmodeelse{print}{%  \def\Resolution{300} }{%  

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Am 01.09.22 um 12:37 schrieb juh+ntg-context--- via ntg-context: Hi Hraban, Am 01.09.22 um 10:56 schrieb Henning Hraban Ramm via ntg-context: \startluacode local function downsampler(oldname, newname, resolution) if not resolution or resolution == "" then resolution = 72 end

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Am 01.09.22 um 13:43 schrieb juh+ntg-context--- via ntg-context: Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context: \loadluafile[grph-downsample] \doifmodeelse{print}{%  \def\Resolution{300} }{%  \def\Resolution{96} }% \setupexternalfigures[    %directory={./Logos,img},

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread juh+ntg-context--- via ntg-context
Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context: \loadluafile[grph-downsample] \doifmodeelse{print}{% \def\Resolution{300} }{% \def\Resolution{96} }% \setupexternalfigures[   %directory={./Logos,img},   conversion=lowres.jpg,   resolution=\Resolution, ] With the

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread juh+ntg-context--- via ntg-context
Hi Hraban, Am 01.09.22 um 10:56 schrieb Henning Hraban Ramm via ntg-context: \startluacode local function downsampler(oldname, newname, resolution)     if not resolution or resolution == "" then     resolution = 72     end     local cmd = string.format(   [[gm convert -resample

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
Am 01.09.22 um 10:51 schrieb Henning Hraban Ramm via ntg-context: Am 01.09.22 um 10:44 schrieb juh+ntg-context--- via ntg-context: Hi, what is resolution meant to do? What am I missing? The resolution parameter is still not used by default ConTeXt, sorry. But you can use it with the

Re: [NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread Henning Hraban Ramm via ntg-context
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

[NTG-context] setupexternalfigures and resoĺution

2022-09-01 Thread 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? TIA juh