HOME
JPEG Lossless Reductor: How it works?
TL;DR: we optimize the lossless step of JPEG compression, so that the original image is preserved pixel to pixel
JPEG compression consists of three sequential steps:
JPEG Lossless Reductor works by first undoing the entropy coding step and then re-applying it in a more efficient manner (when possible). This way, the actual file size can be reduced without changing the original image. In case when the input file size cannot be further reduced (e.g. if it was already processed by the Reductor) the file is left intact.
So why it's not done right in the first place? Good question! Entropy coding works by assigning shorter codes to more frequent chunks of data at the expense of the less frequent ones. Ideally, to know the frequency distribution, the encoder needs to make an extra pass over the input data. Hardware JPEG encoders of most mobile devices instead rely on hard-coded frequency tables to avoid added complexity of the extra pass. The result is not bad but is not ideal either. The Reductor is at your service to bring the compression to perfection!