Gruetzli support #242

Closed
staabm opened this Issue Mar 16, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@staabm

staabm commented Mar 16, 2017

Will mozjpeg also make use of https://github.com/google/guetzli in cases where it could provide filesize reductions?

@kornelski

This comment has been minimized.

Show comment
Hide comment
@kornelski

kornelski Mar 16, 2017

Member

You can use MozJPEG's jpegtran to losslessly compress files from Guetzli even further.

However, I don't think it makes sense to include Guetzli as-is in MozJPEG currently:

  • Guetzli is seriously slow. In my quick test it took 10 seconds to produce a 38KB file, which was 120 times slower than MozJPEG.
    Guetzli is a very young project, so it's likely that it will get much faster, but currently its speed makes it unsuitable for many use-cases that MozJPEG can do (recompression on the fly, saving of high-resolution digital camera images, etc.)

  • Guetzli only supports highest quality settings (close to -quality 90 setting in JPEG), which is fine if you want nearly perfect images, but MozJPEG aims to support wide range of qualities. If you want smallest file size and you only need "good enough" quality, you'll get smaller files from MozJPEG (Guetzli's "bees" example is 38KB and looks great, but MozJPEG compresses it down to 16KB at cost of some distortions).

It probably makes more sense for Guetzli to include lossless parts of MozJPEG's compression instead :)

Member

kornelski commented Mar 16, 2017

You can use MozJPEG's jpegtran to losslessly compress files from Guetzli even further.

However, I don't think it makes sense to include Guetzli as-is in MozJPEG currently:

  • Guetzli is seriously slow. In my quick test it took 10 seconds to produce a 38KB file, which was 120 times slower than MozJPEG.
    Guetzli is a very young project, so it's likely that it will get much faster, but currently its speed makes it unsuitable for many use-cases that MozJPEG can do (recompression on the fly, saving of high-resolution digital camera images, etc.)

  • Guetzli only supports highest quality settings (close to -quality 90 setting in JPEG), which is fine if you want nearly perfect images, but MozJPEG aims to support wide range of qualities. If you want smallest file size and you only need "good enough" quality, you'll get smaller files from MozJPEG (Guetzli's "bees" example is 38KB and looks great, but MozJPEG compresses it down to 16KB at cost of some distortions).

It probably makes more sense for Guetzli to include lossless parts of MozJPEG's compression instead :)

@saurabheights

This comment has been minimized.

Show comment
Hide comment
@saurabheights

saurabheights Mar 17, 2017

Expanding to pornel's response, Guetzli demands high memory, few GB's for large images. The image in this issue is around 24 MP(4Kx6K) and ends up using 5GB mem which makes it highly impractical.

Expanding to pornel's response, Guetzli demands high memory, few GB's for large images. The image in this issue is around 24 MP(4Kx6K) and ends up using 5GB mem which makes it highly impractical.

@saurabheights saurabheights referenced this issue in danielgtaylor/jpeg-archive Mar 17, 2017

Open

Integration with Guetzli by Google #56

@kornelski kornelski closed this Apr 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment