---
title: "init(dataIgnoringOrientation:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nsimage/init(dataignoringorientation:)"
---

# init(dataIgnoringOrientation:)

Initializes and returns an image object using the provided image data and ignoring the EXIF orientation tags.

## Declaration

```swift
convenience init?(dataIgnoringOrientation data: Data)
```

## Parameters

- `data`: The data object containing the image data. The data can be in any format that macOS supports, including PDF, PICT, EPS, or any number of bitmap data formats.

## Return Value

Return Value An initialized NSImage object or nil if the method cannot create an image representation from the contents of the specified data object.

## See Also

### Creating Images from Existing Data

- [init(data:)](appkit/nsimage/init(data:).md)
- [init(cgImage:size:)](appkit/nsimage/init(cgimage:size:)-8oznv.md)
- [init(pasteboard:)](appkit/nsimage/init(pasteboard:).md)
- [init(coder:)](appkit/nsimage/init(coder:).md)
