CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@Abhishek Rawal • 15 Jul, 2014 • 1 like
Recently Mozilla announced its JPEG encoding library with following improvements as quoted from Mozilla blog itself
The major feature in this release is trellis quantization, which improves compression for both baseline and progressive JPEGs without sacrificing anything in terms of compatibility. Previous versions of mozjpeg only improved compression for progressive JPEGs.

Other improvements include:

  • The cjpeg utility now supports JPEG input in order to simplify re-compression workflows.
  • We’ve added options to specifically tune for PSNR, PSNR-HVS-M, SSIM, and MS-SSIM metrics.
  • We now generate a single DC scan by default in order to be compatible with decoders that can’t handle arbitrary DC scans.
For more detail, read :

How To Install ?

- Download source code from
- Extract it
- Install required libs i.e autoconf, automake, make, nasm & libtool

Now let's build :
- cd mozjpeg-2.0
- autoreconf -fiv
- mkdir build
- cd build
- sh ../configure
- sudo make install

snapshot12 snapshot13


- Once completed, the libraries will be installed in /opt/libmozjpeg

snapshot17 snapshot15

For usage read MAN pages from : /opt/libmozjpeg/man

You can use jpegtran located under /opt/libmozjpeg/bin to compress the image.

This is for Linux users, for OS X & Windows users you can compile from source on your own & post the steps in the comment below.
@Abhishek Rawal • 15 Jul, 2014 • 2 likes Here's result of my test :

snapshot19 snapshot23 snapshot22 snapshot21
@Kaustubh Katdare • 16 Jul, 2014 That's good and would definitely help companies like Facebook who can save TBs of data through that optimisation; but I'd want something that brings a reduction of about 30-50%! That'd be killer!

Related Posts

@Ankita Katdare · Oct 15, 2013

IDoc stands for Intermediate Document in SAP. It is nothing but a SAP Document format that is used for Business transaction data transfers. For us technical people, we can understand...

@andenagaveni24 · Feb 25, 2012

do give guidelines how can i prepare a good ppt for technical seminar presentation..can anybody upload a sample ppt presentation here....

@Janaa karti · Feb 26, 2015

frnz i need topology and detailed block diagram of wifi transmitter and reciever

@Debasmita Banerjee · Apr 25, 2016

Remember the 2014 hit Sci-fi Film Interstellar? In the film, Cooper, a former NASA pilot was instructed by Dr Brand to head the Endurance spaceship to a wormhole in search...

@Kaustubh Katdare · Jul 11, 2012

One of the CEans wrote to me - Sir, I have completed my 3rd year of mechanical engineering and final year will be starting from august. Companies will start visiting...