JPEG - Maple Help

Online Help

All Products    Maple    MapleSim


JPEG (.jpg, .jpeg) File Format

JPEG file format

 

Description

Notes

Examples

Description

• 

JPEG is a popular lossy image data format for compressed raster data.

• 

This format is supported by the ImageTools[Read] and ImageTools[Write] commands. The general-purpose commands Import and Export also support this format.

• 

An image may be specified as the background of a plot with the image option (see plot,options).

• 

The context-sensitive menu can be used to export Maple plot graphics to JPEG format.

• 

Additionally, JPEG images can be inserted directly into a Maple Document.

Notes

• 

Content-Type: image/jpeg

Examples

Create an image and write it out to the home directory of the current user.

withImageTools:

imageCreate100,200,r,c0.251+sin0.005+0.003cc1+sin0.15r,r,c0.51+expr50.sinc20.,r,cr100.0:

testFileFileTools:-JoinPathtest.jpg,base=homedir

/Users/JohnSmith/test.jpg

(1)

WritetestFile,image

4066

(2)

Import a JPEG file from disk and view the underlying data.

Importimages/fingerprint.jpg,base=datadir

0.1882352941176470.5686274509803920.5058823529411760.4705882352941180.4941176470588240.5058823529411760.4862745098039220.5098039215686270.5019607843137250.5019607843137250.5411764705882350.9843137254901960.9921568627450980.9921568627450981.1.0.9921568627450981.1.1.0.4784313725490200.9607843137254901.1.1.0.9843137254901960.9647058823529410.9960784313725490.9960784313725490.9960784313725490.5176470588235290.9960784313725491.1.0.9882352941176470.9803921568627450.9725490196078431.1.1.0.5019607843137250.9764705882352941.0.9803921568627450.9882352941176471.1.1.1.1.0.4784313725490200.9607843137254900.9921568627450980.9803921568627451.1.0.9882352941176470.9882352941176470.9960784313725490.9960784313725490.5019607843137250.9921568627450981.0.9921568627450981.1.0.9803921568627450.9803921568627451.1.0.4941176470588240.9843137254901961.0.9725490196078430.9725490196078431.1.1.0.9921568627450980.9921568627450980.4980392156862751.0.9921568627450981.1.0.9803921568627450.9960784313725490.9921568627450981.1.0.4941176470588240.9960784313725490.9921568627450981.1.0.9843137254901960.9960784313725490.9960784313725491.1.240 × 256 Array

(3)

Importimages/fingerprint.jpg,base=datadir,output=embed

See Also

Formats

ImageTools[Read]

ImageTools[Write]

plot[options]