I was thinking about writing glue to integrate the MozJPEG encoding library with Pike. I already figured it should live in src/post_modules/_Image_MozJPEG. The question remains what to do about the library itself?
- The library itself is a JPEG encoding-only library. - It usually is not system provided (because it's encoding only). - The library itself is available at https://github.com/mozilla/mozjpeg - The library is about 1.5MB xz compressed and about 9MB uncompressed.
The options are:
a. Make it pluggable, so that if you manually provide the library source tree in the correct src/post_modules/_Image_MozJPEG/mozjpeg location it will automatically detect and compile it in.
b. Make it fetch the library using git during the configure run, and then jump to option a.
c. Include the library in the Pike source tar.
d. Create a package for that library that I submit to all (Linux) distributions. (Not really an option, too much work).
I'd think that option b) might be the most prudent one. What do you think?