3.12 Skribilo User Manual — Images
Images are defined by the means of the
(image :file [:zoom] [:height] [:width] [:url] [:class] [:ident]
convert-image) into a format supported by the engine. This option is exclusive with the :url option. html lout latex context info
commentA text describing the image.
Files passed as a :file argument to
are searched in the current image path, which is defined by
the *image-path* SRFI-39 parameter. This parameter
contains a list of directories and its value can be obtained using
(*image-path*). Its value can be altered using the -P
command-line option of the skribilo compiler (see Chapter 14 for details).
Images are unfortunately unportable. The various Skribe output
formats support different image formats. For instance, HTML supports
jpeg while the LaTeX back-end only supports
ps. Skribe tries, only when needed, to automatically
convert images to a format supported by the target
to be produced. For this, it uses external tools. The default Skribe
translation scheme is:
fig2devexternal tool to translate
convertexternal tools to translate all other formats.
Engines support different image
formats. Each engine may specify a converter to be applied to an image.
The engine custom
image-format specifies the list of supported
image formats. This list is composed of a suffix such as
convert-image tries to convert an
image according to a list of formats. All the specified formats are
successively tried. On the first success, the function
returns the name of the new converted image. On failure, it returns
fileThe image file to be converted. The file is searched in the *image-path*image path.
formatsA list of formats into which images are converted to.