MozJPEG library in ImageMagick build

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
JamieR
Posts: 3
Joined: 2012-03-29T07:11:39-07:00
Authentication code: 8675308

MozJPEG library in ImageMagick build

Post by JamieR »

Hello,
I'm looking into incorporating MozJPEG into an ImageMagick build so that IM can natively use MozJPEG (vs. libjpeg) instead of using a separate MozJPEG executable on images already manipulated with IM.

I compiled the MozJPEG library, and then attempted to use ImageMagic's "configure" switches to point at the MozJPEG library, but without any luck. I may just be doing it wrong. Has anyone tried this with success?

Now that MozJPEG is more mature, and fairly proven, are there any plans to incorporate it as an option in the regular IM release?

Cheers
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: MozJPEG library in ImageMagick build

Post by glennrp »

What does MozJPEG offer that libjpeg doesn't? As far as I know, MozJPEG is just a fork of libjpeg.
mozjpeglover
Posts: 1
Joined: 2017-06-26T03:05:21-07:00
Authentication code: 1151

Re: MozJPEG library in ImageMagick build

Post by mozjpeglover »

As far as I know MozJPEG uses different quantization table. When JPEG standard came out it has proposed default quantization table and JPEG Group said that it should be used only as sample, but every library started using this table unarguably. Mozilla engineers have done a tremendous work that JPEG Group has unfinished. Also between MozJPEG (Mozilla) and Guetzli (Google) I would prefer MozJPEG, because they both have disadvantage compared to libjpeg that they consume more RAM and CPU, but Guetzli does this 10-15 times more!!!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: MozJPEG library in ImageMagick build

Post by magick »

ImageMagick supports custom quantization tables with the -define jpeg:q-table option.
Post Reply