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⁡−r50.⋅sin⁡c20.,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
0.1882352941176470.5686274509803920.5058823529411760.4705882352941180.4941176470588240.5058823529411760.4862745098039220.5098039215686270.5019607843137250.501960784313725…0.5411764705882350.9843137254901960.9921568627450980.9921568627450981.1.0.9921568627450981.1.1.…0.4784313725490200.9607843137254901.1.1.0.9843137254901960.9647058823529410.9960784313725490.9960784313725490.996078431372549…0.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.996078431372549…0.5019607843137250.9921568627450981.0.9921568627450981.1.0.9803921568627450.9803921568627451.1.…0.4941176470588240.9843137254901961.0.9725490196078430.9725490196078431.1.1.0.9921568627450980.992156862745098…0.4980392156862751.0.9921568627450981.1.0.9803921568627450.9960784313725490.9921568627450981.1.…0.4941176470588240.9960784313725490.9921568627450981.1.0.9843137254901960.9960784313725490.9960784313725491.1.…⋮⋮⋮⋮⋮⋮⋮⋮⋮⋮240 × 256 Array
Import⁡images/fingerprint.jpg,base=datadir,output=embed
See Also
Formats
ImageTools[Read]
ImageTools[Write]
plot[options]
Download Help Document
What kind of issue would you like to report? (Optional)