<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSImage/imageFileTypes()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSImage(cm)imageFileTypes"
  },
  "title" : "imageFileTypes()"
}
-->

# imageFileTypes()

Returns an array of strings identifying the image types supported by the registered image representation objects.

```
class func imageFileTypes() -> [String]
```

## Return Value

An array of `NSString` objects, each of which identifies a single supported file type. The array can include encoded HFS file types as well as filename extensions.

## Discussion

This list includes all file types supported by registered subclasses of [`NSImageRep`](/documentation/AppKit/NSImageRep) plus those that can be converted to a supported type by a user-installed filter service. You can pass the array returned by this method directly to the [`runModalForTypes:`](/documentation/AppKit/NSOpenPanel/runModalForTypes:) method of `NSOpenPanel`.

Do not override this method. If your app supports custom image types, create and register an [`NSImageRep`](/documentation/AppKit/NSImageRep) subclass that handles those types.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)