

Resolution, resolution, oldname, newname) If not resolution or resolution = "" then Local function downsampler(oldname, newname, resolution) It is possible to change the converter used with the following code: In LMTX, the file name contains a MD5 hash of the relevant source image parameters (resolution, dimensions.

The result is cached, and the conversion is re-run if the timestamp of the original file is newer than that of the converted file. pdf added to the name of the original file. The conversion generates a PDF file with prefix m_k_i_v_ and a suffix. Gs (or gswin32c on Windows) from Ghostscript Of course, for such a conversion to work, the corresponding converter must be in the PATH. ConTeXt also supports a few other formats that are first converted to PDF using an external program. The image file formats listed in the previous section are the ones that may be embedded directly in a PDF.

jb2Īn old page (2010), gives details on supported file formats Image Conversion MPS (MetaPost output): File extension.The image format is determined from the file extension (case insensitive). These four variations cover the most common use cases.ĬonTeXt natively supports the image formats enumerated below. To include a specific page, say page 5, of a multi-page PDF file, use: If only the width or height of the image is specified, the other dimension is scaled appropriately to keep the aspect ratio. Similarly, to set the height of the image to a specific size, say 2cm, use: To set the width of the image to a specific size, say 1cm, use: This command places the PDF image logo.pdf in a \vbox the width and height of the image are equal to the natural dimensions of the image. The simplest way to insert an image is to use:
