MNG Support for Mozilla

MNG Support was removed as part of Mozilla at 2003-06-03 16:20 PST, which means that nightly builds from June 4 and later no longer contained it, neither will Mozilla 1.5alpha and later.

This project may contain newer versions of this XPI.

Version 1.0.8-alpha-1

Thanks to Sven Neumann a version of the XPI based on libmng-1.0.8-alpha is now available. This should fix crashes on some MNG files.
MNG for Linux, GCC 3

Additionally, a version using libmng 1.0.8a for Mozilla 1.7 on OS/2 and eComStation is available, thanks to Peter Weilbacher: MNG for OS/2

Version 1.0.6-1

Compiled from a libmng CVS snapshot from Sept 25, 2003, 14:30 CEST. Fixes a JNG crash bug (http://bugzilla.mozilla.org/show_bug.cgi?id=196670)
MNG for Windows
Also available: GCC-compiled XPI for OS/2, required for current builds: MNG for OS/2, GCC-compiled
(thanks to Peter Weilbacher for providing this XPI)

Version 1.0.5-2

Compiled from a libmng CVS snapshot, using size-optimizing configuration options. There should be no feature loss over the older XPIs.
MNG for Linux, GCC 3.3 (85 KB)

Version 1.0.5-1

MNG Decoder for Windows (92 KB Download)
MNG Decoder for Linux, compiled with GCC 2.95.3 (100K)
MNG Decoder for Linux, compiled with GCC 3.3 (83K)
(versions for other operating systems may follow at a later time. please do not email me asking for them.)

Other operating systems

These XPIs were not tested; they were created by extracting the file out of the .tar.gz file. Except MacOS X, for which chucker thankfully sent me the file.
MNG Decoder for MacOS X (124 KB)
MNG Decoder for Sparc Solaris 2.7
MNG Decoder for Sparc Solaris 2.8
MNG Decoder for IBM OS/2, VACPP compiled

Note - you may have to reinstall the XPI if you upgrade your browser.

Note about the two Linux versions

The installer builds as well as .tar.gz builds available from mozilla.org are compiled with GCC 2.95.3, so download that version of the XPI.
Update: That seems to be no longer true. All linux nightlies are compiled with GCC 3.2.3 now.
The RPMs available at mozilla.org were compiled with GCC 3.x, so get the GCC 3.3 version of the XPI.

Note! You must have write access to the components/ subdirectory of your mozilla installation directory for installing the XPI. This may mean that you must be root when installing it. After installing the mng support, it will be available for all users using this version of Mozilla.

How to build this XPI

Note: The build instructions at http://www.opiswelt.de/mozilla/mng.html are probably more accurate/up-to-date (although not XPI-specific)

If you want to compile your own Mozilla with MNG support, or create your own MNG XPI, follow these steps (copied from a mail I wrote):

You have basically two possibilities: I have built the XPI using Mozilla 1.4, which still includes MNG, replacing modules/libimg/mng/ with the new libmng sources.

The alternative is to apply the patch from http://bugzilla.mozilla.org/show_bug.cgi?id=18574#c408 (probably also replacing the libmng code as mentioned above).

After that, unzip the .xpi file (it's a renamed .zip file), replace libimgmng.so with the one in your newly built mozilla (in the dist/bin/components directory). For compatibility with nightly builds, use GCC 3 as the compiler. Then, rezip it. (Updating the version number in install.js would probably also be a good idea)

I am not sure if the patch supports building using a systemwide installed libmng, probably it does, you'd want to build with --with-system-mng probably. Either way, you'll want --disable-debug --enable-optimize.

Please refer to http://www.mozilla.org/build/ for general instructions on building Mozilla.



Christian Biesinger <cbiesinger@web.de>