Skip to content
Karl R. Wilcox edited this page Oct 11, 2018 · 22 revisions

The Shield Drawing function of DrawShield can be invoked in 3 ways:

  1. From the command line (no options are processed and the output is fixed as PNG). This mode is largely for debugging but might also be useful for bulk generation of PNG images.

  2. Via an HTTP POST request - this is the recommended method as it gives the greatest flexibility and range of options (described below). This the method used by the drawshield.net website "create" page.

  3. Via an HTTP GET request - this is also useful and quite flexible, the only option not available is that it is not possible to provide the blazon in an uploaded file.

DrawShield from the command line

This is a very simple process, all of the arguments will be concatenated into a single string, separated by spaces and this will be treated as the blazon. A file named shield.png will be created which will be 500 pixels wide, using the DrawShield colour scheme, the heater shield shape and the shiny effect.

An example command line would be:

'''php drawshield.php azure a bend or'''

Options for GET and POST

Clone this wiki locally