Conjure uses the following syntax:
conjure [options]script.msl [[options]script.msl]
The script.msl
file is an XML file that contains elements that instruct ImageMagick to do special tasks.
For example, in the following code we convert an image from JPEG
to TIFF:
<?xml version="1.0" encoding="UTF-8"?> <image> <read filename="test.jpg" /> <write filename="test.tif" /> <print output="Image format converted from JPEG to TIFF" /> </image>
Write this code in your favorite text editor, save it as test.msl
, and see it in action when you invoke it using the conjure
utility as follows:
conjure test.msl
If you notice the conjure
usage notation, there are some options in the command. In fact, these options perform the same task as the options in the batch files.
In a batch file execution we can define some external parameters and values that will be used by the...