<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHReferenceImageInfo/init(fileURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "s:6Photos20PHReferenceImageInfoC7fileURLAC10Foundation0F0V_tcfc"
  },
  "title" : "init(fileURL:)"
}
-->

# init(fileURL:)

Creates an info object from a file URL representing a HEIC, JPEG, or DNG containing an image with Apple Reference Image data.

```
init(fileURL: URL)
```

## Discussion

If the file URL references a file that is not an image file, or an image file that does not contain Apple Reference Image data, `PHReferenceImageInfo/imageContainsReferenceImageData` will return false.

---

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)