Table of ContentsPreviousNext

Put your logo here!

6 Using MapleNet's Image Generation

In this Chapter

6.1 Description of Image Generation

Users can take advantage of MapleNet's image generation capabilities to embed math or plot images in any web page. These images are created dynamically using simple URLs directed to the MapleNet server and returned in either GIF or JPEG format.

The image generation feature of MapleNet has the following capabilities:

6.2 URL Specification

The general form of the URL to generate an image is



URL Line Length Limits

The maximum length of the URL is both browser dependent and server dependent.

URL Encoding

URLs by definition have special meaning for certain characters. This is defined in Internet standards. URL encoding replaces certain ASCII characters with "%" followed by two hexadecimal digits. Hex values correspond to values in the ISO-8859-1 characters. If these characters are required in the Maple Expression, they usually should be included in an encoded format. For example,


should be written as


The following list shows the special characters and their encoded form:

Name Char. Encoding Notes (if character is not encoded)
Space   %20  
Pound sign # %23 will be used as anchor reference
Percent sign % %25 percent is encoding character
Ampersand & %26 is delimiter for parameters
Plus + %2B will be converted to space
Less than < %3C  
Equal sign = %3D may be confusing in parameter=value sequence
Greater than > %3E  
Question mark ? %3F is delimiter for start of parameters

So, a math expression of the form




6.3 Usage

To include a generated image in a web page, use an image generation URL in the 'href' parameter of any <img> tag.

Note: Images are generated dynamically at the time the href URL is sent back to the server. The image is not stored on the server.

6.4 Examples

Copy and paste the following examples into your browser. Be sure to replace localhost:8080 with the specifications for your server.

Math Examples

Show the equation: x-sin(x)


Show the equation: distance = (1/2)*a(t)*t^2 + v(t)*t + d0


Plot Examples

Show plot of sin(x) from 0 to 2*Pi


Show a 3-D plot of x^2 + y^2


Table of ContentsPreviousNext