RLE (.rle)
Background & Context
-
- Raster image format.
- A very simple lossless data compression.
- Compresses image data using run-length encoding.
- Efficient in compressing black-and-white images.
- Plain text format.
- Superseded by other raster formats such as GIF.
Import & Export
- Import["file.rle"] imports an RLE file, returning an Image object.
- Import["file.rle",elem] imports the specified element from an RLE file.
- The import format can be specified with Import["file","RLE"] or Import["file",{"RLE",elem,…}].
- Export["file.rle",expr] exports an image, graphics and numeric arrays to an RLE file.
- Image objects are by default exported at their full raster size. Graphics and other arbitrary expressions are exported using the same raster size as their displayed form.
- See the following reference pages for full general information:
-
Import, Export import from or export to a file CloudImport, CloudExport import from or export to a cloud object ImportString, ExportString import from or export to a string ImportByteArray, ExportByteArray import from or export to a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Data representation elements:
-
"Array" initial state as a SparseArray object "Image" initial state as an Image object - Metadata elements:
-
"Comments" comments stored in the file "ImageSize" size of the imported raster - An RLE file may include additional images such as intermediate results of a cellular automaton evolution.
- Elements to access additional data:
-
"ArrayList" list of SparseArray objects "FullData" a list of associations including "Rule", "Array" and "Comments" key-value pairs "ImageCount" total number of images stored in the file "ImageList" list of Image objects