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

# imageFileTypes()

Returns the file types supported by the image representation class or one of its subclasses.

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

## Return Value

An array of `NSString` objects, each of which contains a filename extension or HFS file type of a supported format.

## Discussion

The list includes both those types returned by the [`imageUnfilteredFileTypes()`](/documentation/AppKit/NSImageRep/imageUnfilteredFileTypes()) class method plus those that can be converted to a supported type by a user-installed filter service. The returned file types can include encoded HFS file types as well as filename extensions.

Don’t override this method when subclassing `NSImageRep`—it always returns a valid list for any subclass of `NSImageRep` that correctly overrides the [`imageUnfilteredFileTypes()`](/documentation/AppKit/NSImageRep/imageUnfilteredFileTypes()) method.

---

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)