What is MIME type "image/x-mng"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

image/x-mng is the MIME type for the MNG (Multiple-image Network Graphics) format. It supports animated image files that combine several images into one file.
The format was designed for advanced animations. It builds on techniques similar to those in PNG and adds extra features while remaining lossless.
Files with the MNG extension use this MIME type. Though not as common as other animated formats like GIF or APNG, it was created for scenarios needing detailed control over animation playback.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: image/x-mng    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="image/x-mng">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'image/x-mng');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

Do modern web browsers support image/x-mng?

Generally, no. Most modern browsers like Chrome, Firefox, and Safari do not provide native support for image/x-mng. While it was intended to be the animated successor to PNG, the web community largely adopted APNG (Animated PNG) instead because it offers backward compatibility with standard PNG decoders.

How do I configure Apache or Nginx to serve MNG files?

You must ensure the server sends the correct Content-Type header. For Apache, add AddType image/x-mng .mng to your .htaccess or config file. For Nginx, ensure your mime.types file includes the line image/x-mng mng; or add it inside a types { ... } block in your server configuration.

What is the difference between MNG and APNG?

Both formats support animation and transparency, but APNG is backward-compatible with PNG (displaying the first frame if animation isn't supported), while MNG is not. MNG is a much more complex format with advanced features like nested loops and delta frames, but this complexity led to its lack of adoption compared to the simpler APNG.

How can I open an .mng file on my computer?

Since standard photo viewers and browsers often fail to open .mng files, you need specialized software. Tools like XnView, IrfanView, and ImageMagick support the format. On Linux systems, many legacy image viewers based on standard libraries may also open files with the image/x-mng MIME type.

Why does the MIME type start with 'x-'?

The x- prefix in image/x-mng indicates that it is a non-standard or experimental subtype. While MNG is a well-documented specification, it was not registered as a standard type without the prefix by IANA before its usage declined in favor of other formats.

Is the image/x-mng format lossless?

Yes, MNG is primarily a lossless format. It uses the same compression algorithms (Deflate) as PNG, allowing for pixel-perfect animations without the compression artifacts found in lossy video formats or the color palette limitations of GIF.

How do I convert MNG files for better web compatibility?

To ensure your animations work on the web, it is best to convert image/x-mng content to APNG, GIF, or MP4. You can use command-line tools like ImageMagick (convert file.mng file.gif) or online converters to transform the file into a widely supported format.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.