Conjure Script
Posted: 2015-07-28T10:09:59-07:00
I'm having some problems getting to work a conjure script work properly.
I have prepaded a 512x512 pure white image.png beforehand.
Code: Select all
$ cat con_script.msl
<?xml version="1.0" encoding="UTF-8"?>
<image>
<read filename="image.png" />
<draw primitive="rectangle" stroke="#f00" fill="#0f0" x="10,20" y="30,40" />
<draw primitive="text" fill="#00f" text="sample text" x="100" y="100" font="GohuFont" />
<annotate text="lorem ipsumR" family="GohuFont" x="10" y="30" pointsize="6" antialias="false"/>
<write filename="image.png" />
</image>
$ ls
con_script.msl image.png
$ conjure con_script.msl
- The annotate command does render text, but the font is incorrect. It does not render it in GohuFont, but what I think is Nimbus Sans. It may entirely be possible that the font is not correctly configured, but GohuFont works as my terminal font as well as if I try to change it in Firefox, so I think it might be configured right.
- The draw command does not seem to work. Not even one of the both primitive types.
Code: Select all
$ uname -roms && conjure -version && fc-match "GohuFont"
Linux 4.1.2-2-ARCH x86_64 GNU/Linux
Version: ImageMagick 6.9.1-8 Q16 x86_64 2015-07-14 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenCL OpenMP
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma pangocairo png ps rsvg tiff webp wmf x xml zlib
gohufont-11.pcf.gz: "GohuFont" "Regular"