You are here

Export with MozJPEG

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

Allows exporting as JPEG using the MozJPEG toolkit ( MozJPEG provides better JPEG quality at the same file size. MozJPEG is promoted by Mozilla as an alternative to the Google's WebP format.

As to whether it does worth the fuss or not, you decide. I have made a comparison of all the today's battling web image formats:


You must edit the "cjpeg_path" variable in the plug-in file to point it to your cjpeg executable location. This plugin requires the "cjpeg" utility from the mozjpeg toolkit!


1. cp ~/.gimp-2.8/plug-ins
2. chmod +x

1. Remove Windows
2. Install Linux


Method 1 (preferred):
1. File > Export As...
2. Enter the output file name but specify .moz as extension instead of .jpg
3. The resulting file will still be called .jpg
NOTE: if the output file already exists it is overwritten without warning!

Method 2:
1. File > Export As...
2. Open the "Select file type" list below
3. Select "JPEG image (MozJPEG toolkit)
4. On the "Extension mismatch" warning click "Save"

Method 3:
Rename/remove the original JPEG plugin (file-jpeg).
1. cd /usr/lib/gimp/2.0/plug-ins
2. sudo mv file-jpeg .file-jpeg
1. Remove Windows
2. Install Linux

Mirror 1:
Mirror 2:

NOTE: As mozjpeg is still not readily available at the repositories of the most of Linux distributions, I strongly recommend you to compile it from the source. Still, as it is not an easy task for a non-programmer, and if you trust me (although I discourage this approach), you can use the unofficial 64-bit binaries I have compiled myself (I cannot guarantee them to work on every Linux system):

v0.31 - Disabled arithmetic coding by default as it may be incompatible with browsers/viewers using libjpeg for JPEG decoding (yet it gives better quality)
v0.3 - More options added and minor fixes
v0.2 - Added the DCT coding options
v0.1 - Initial release

GIMP Version: 
Code License: 
Subscribe to Comments for "Export with MozJPEG"