What is MIME type "image/x-photo-cd"?

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

image/x-photo-cd marks files created for Photo CD, a format developed for archiving and viewing high-quality images on CDs.
It is most used with images stored under the file extension PCD.
Photo CD files incorporate compression methods that try to retain image details. They were once popular for digital photo storage and distribution on compact discs. Today, many modern programs need additional converters to support this legacy type.
For more details on the file format, visit the external reference above.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: image/x-photo-cd    
  

HTML

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


    <a href="file.dat" type="image/x-photo-cd">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-photo-cd');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

Can web browsers display image/x-photo-cd files directly?

No, modern web browsers like Chrome, Firefox, and Edge do not natively support Photo CD files. To display these images on a webpage, you must convert them to standard web-compatible formats like JPEG or PNG.

Which file extension uses the image/x-photo-cd MIME type?

This MIME type is exclusively associated with the .pcd extension. These files are legacy Kodak Photo CD images containing multiple resolutions of a single photograph.

How do I configure Apache to serve .pcd files?

To ensure your Apache server identifies these files correctly, add the following line to your .htaccess file or main configuration: AddType image/x-photo-cd .pcd. This tells the server to send the correct content type header during download.

Why do I see a download prompt instead of the image when opening a PCD file?

Because browsers cannot render image/x-photo-cd content, they default to downloading the file. This behavior is expected for non-standard or unsupported image types so the user can open them in a local desktop application.

What is the Nginx configuration for Photo CD images?

In Nginx, you should add the mapping to your mime.types file or the server block configuration. Use the directive: image/x-photo-cd pcd; to correctly associate the MIME type with the extension.

What does the 'x-' prefix mean in image/x-photo-cd?

The x- prefix indicates that this is a non-standard or experimental subtype that was not officially registered with the IANA standards body. It signifies a vendor-specific format, in this case, developed by Kodak for their proprietary hardware and software systems.

How can I convert image/x-photo-cd files to modern formats?

You generally need specialized conversion software or legacy image viewers like IrfanView or ImageMagick. Since the format stores images in multiple resolutions simultaneously, you often need to specify which resolution layer (e.g., Base, 16Base) to extract during conversion.

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.