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 attached lua file like:

This works also:

\startluacode
local function downsampler(oldname, newname, resolution)
    if not resolution or resolution == "" then
        resolution = 72
    end
    local cmd = string.format(
      [[gm convert -resample %ix%i %s %s]],
      resolution, resolution, oldname, newname)
    os.execute(cmd)
end

-- Set the PDF and default JPEG converters to the above function.
figures.converters.jpg.pdf = downsampler
figures.converters.jpg.default = downsampler
\stopluacode

I didn’t manage to plug this into the "conversion" mechanism.

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
___________________________________________________________________________________

Reply via email to