<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetChangeRequest/creationRequestForAssetFromImage(atFileURL:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetChangeRequest(cm)creationRequestForAssetFromImageAtFileURL:"
  },
  "title" : "creationRequestForAssetFromImage(atFileURL:)"
}
-->

# creationRequestForAssetFromImage(atFileURL:)

Creates a request for adding a new image asset to the Photos library, using the image file at the specified URL.

```
class func creationRequestForAssetFromImage(atFileURL fileURL: URL) -> Self?
```

## Parameters

`fileURL`

A URL for an image file.

## Return Value

An asset creation request.

## Discussion

Call this method within a photo library change block to create a new asset. For details on change blocks, see [`PHPhotoLibrary`](/documentation/Photos/PHPhotoLibrary).

To set metadata properties of the newly created asset, use the corresponding properties of the change request (listed in Modifying Assets). To reference the newly created asset later in the same change block or after the change block completes, use the [`placeholderForCreatedAsset`](/documentation/Photos/PHAssetChangeRequest/placeholderForCreatedAsset) property to retrieve a placeholder object.

---

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)