JPEG (.jpg, .jpeg) File Format
JPEG file format
Description
Notes
Examples
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.
Content-Type: image/jpeg
Create an image and write it out to the home directory of the current user.
with⁡ImageTools:
image≔Create⁡100,200,r,c↦0.25⋅1+sin⁡0.005+0.003⋅c⋅c⋅1+sin⁡0.15⋅r,r,c↦0.5⋅1+exp⁡−0.02000000000⋅r⋅sin⁡0.05000000000⋅c,r,c↦r100.0:
testFile≔FileTools:-JoinPath⁡test.jpg,base=homedir
/Users/JohnSmith/test.jpg
Write⁡testFile,image
4066
Import a JPEG file from disk and view the underlying data.
Import⁡images/fingerprint.jpg,base=datadir
Import⁡images/fingerprint.jpg,base=datadir,output=embed
See Also
Formats
ImageTools[Read]
ImageTools[Write]
plot[options]
Download Help Document