JPEG (.jpg, .jpeg) File Format - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Input and Output : File Formats : Formats/JPEG

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,c→0.251+sin0.005+0.003cc1+sin0.15r,r,c→0.51+ⅇr50.sinc20.,r,c→r100.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

(3)

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

See Also

Formats

ImageTools[Read]

ImageTools[Write]

plot[options]