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

# localizedName(forTIFFCompressionType:)

Returns an autoreleased string containing the localized name for the specified compression type.

```
class func localizedName(forTIFFCompressionType compression: NSBitmapImageRep.TIFFCompression) -> String?
```

## Parameters

`compression`

A TIFF compression type. For more information, see the constants in [`NSBitmapImageRep.TIFFCompression`](/documentation/AppKit/NSBitmapImageRep/TIFFCompression).

## Return Value

A localized name for `compression` or `nil` if `compression` is unrecognized.

## Discussion

When implementing a user interface for selecting TIFF compression types, use [`getTIFFCompressionTypes(_:count:)`](/documentation/AppKit/NSBitmapImageRep/getTIFFCompressionTypes(_:count:)) to get the list of supported compression types, then use this method to get the localized names for each compression type.

---

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)