RLE Compression
Overview
Run-Length Encoding (RLE) is a data compression technique used to reduce the size of data by representing consecutive repeated values as a single value followed by a count. Instead of storing each individual value separately, RLE condenses sequences of the same value into a shorter format, which can significantly reduce the amount of storage space required for certain types of data.
RLE compression for images
RLE compression is a technique often applied to images, especially those with large areas of uniform color or patterns. This significantly reduces the storage space required for the image data. When considering image compression in Flint, RLE can be employed for formats such as ARGB8888, RGB565 and CLUT, potentially offering up to a 75% reduction in storage space.
To utilize RLE compression for images, proceed with the following steps:
Go to flint.efp and choose the ‘images’ tab.
Double-click on the preferred image where you intend to apply RLE compression. This will open the image properties dialog.
Select RLE under the Optimization option.
However, it’s important to note that RLE might not always result in significant compression for fonts and images, especially if the fonts and images have irregular patterns or minimal repeated elements. It is most effective on data with large runs of identical values.
RLE compression for fonts
In Flint, users can easily apply RLE to both anti-aliased fonts and image-based fonts by enabling the RLE conversion option in the font file as shown below.
Download the sample project for RLE compression from the Downloads Section .