[NTG-context] setupexternalfigures and resoĺution

juh+ntg-context at mailbox.org juh+ntg-context at mailbox.org
Thu Sep 1 19:22:28 CEST 2022


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}
>>> }{%
>>>      \def\Resolution{96}
>>> }%
>>>
>>> \setupexternalfigures[
>>>    %directory={./Logos,img},
>>>    conversion=lowres.jpg,
>>>    resolution=\Resolution,
>>> ]
>>
>> With the script I get strange results. I am not sure whether the 
>> resolution is correctly calculated.
>>
>> And I am wondering what the script is doing with png files.
> 
> This one attacks all images, but it doesn’t calculate the final size 
> correctly.

For the records.
I need a resolution of 240 to get a good looking image.

This is more or less the same quality with 150 using the other possibility.

After playing around this day I fear that postprocessing with ps2pdf is 
more predictable and results in a way more tiny file.

juh




More information about the ntg-context mailing list