ImageText-based
image/x-portable-anymap
PNM (Portable Anymap)
Reference for image/x-portable-anymap, the MIME type for PNM family of simple image formats used in image processing.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
Expected extensions: .pnm
HTTP Content-Type Header
HTTP Header
Content-Type: image/x-portable-anymap; charset=utf-8Associated File Extensions
.pnm
Quick Facts
| MIME Type | image/x-portable-anymap |
| Category | Image |
| Type | Text-based (human-readable) |
| Extensions | .pnm |
Common Usage
PNM is a family of simple image formats (PBM, PGM, PPM) used in academic image processing, Unix pipelines, and as intermediate formats in image conversion tools. Their simplicity makes them easy to read and write programmatically without external libraries.
Code Examples
HTML
<!-- Link or embed with explicit type -->
<link rel="stylesheet" href="file.pnm" type="image/x-portable-anymap">
<!-- Or for script/media elements -->
<script type="image/x-portable-anymap" src="file.pnm"></script>Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('image/x-portable-anymap');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'image/x-portable-anymap' });nginx
# nginx.conf — add to types block or use default
types {
image/x-portable-anymap pnm;
}
# Or set for a specific location
location /api/ {
default_type image/x-portable-anymap;
}Related MIME Types
More Image MIME Types
Other image types in the Image family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.