What is MIME type "image/pict"?

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

The MIME type image/pict is used to mark files that store graphics in the PICT format. These files contain both vector and bitmap data.
They were developed by Apple for Macintosh systems and record drawing commands and image data.
Common file types include PIC, PCT, and PICT.
For more information on this format, see Wikipedia: PICT.

Associated file extensions

Usage Examples

HTTP Header

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


    Content-Type: image/pict    
  

HTML

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


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

Associated file extensions

FAQs

Can I use image/pict files on my website?

No, modern web browsers like Chrome, Firefox, and Edge do not display image/pict files natively. You should convert these files to standard web formats like image/png or image/jpeg to ensure they are visible to your visitors.

How do I configure Apache to serve PICT files correctly?

To ensure browsers and applications interpret the file correctly, add the MIME type definition to your .htaccess file or server config. Use the directive AddType image/pict .pict .pct .pic to map the extensions to the MIME type.

What is the difference between image/pict and standard bitmaps?

Unlike simple raster formats, files marked as image/pict can contain both bitmap images and vector drawing commands (based on Apple's QuickDraw). This allows them to store complex graphical data that can scale better than standard bitmaps in specific legacy Macintosh environments.

How do I open a .pct or .pict file on Windows?

Since PICT is a legacy Apple format, Windows does not support it out of the box. You will need to use third-party image viewers such as IrfanView, XnView, or professional software like Adobe Photoshop to view or convert these files.

Why is the image/pict format considered legacy?

Apple replaced PICT with PDF as the native graphics format with the release of macOS X, moving away from the QuickDraw technology PICT relies on. Because of this and its lack of cross-platform compatibility, it is rarely used for new data today.

Is image/x-pict the same as image/pict?

Yes, image/x-pict is a non-standard variation often seen in older systems. While image/pict is the standard registered type, software should ideally be configured to recognize both to ensure maximum compatibility with old files.

How can I convert PICT files to a modern format?

You can use tools like ImageMagick or GIMP to convert legacy PICT files. For example, a command line instruction like magick convert image.pict image.png will create a universally compatible PNG version of the graphic.

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.