[NTG-context] When newsizing an external figure bei [width=<some pt>], what will be its height in pt and viceversa?

Peter M√ľnster pm at a16n.net
Fri Feb 22 12:59:55 CET 2019


On Fri, Feb 22 2019, Rudolf Bahr wrote:

> The picture sizes in px One gets by invoking for instance graphics Magick's identify
> in a lua program:

Or just img.scan():

\startluacode
  local image = img.scan{filename = "my-image.jpg"}
  logs.report("xsize", image.xsize)
  logs.report("ysize", image.ysize)
\stopluacode

-- 
           Peter


More information about the ntg-context mailing list