---
title: "imageWithContentsOfURL:"
framework: coreimage
role: symbol
role_heading: Type Method
path: "coreimage/ciimage/imagewithcontentsofurl:"
---

# imageWithContentsOfURL:

Creates and returns an image object from the contents of a file.

## Declaration

```occ
+ (CIImage *) imageWithContentsOfURL:(NSURL *) url;
```

## Parameters

- `url`: The location of the file.

## Return Value

Return Value An image object initialized with the contents of the file.

## See Also

### Creating an Image

- [empty()](coreimage/ciimage/empty().md)
- [init(image:)](coreimage/ciimage/init(image:).md)
- [init(image:options:)](coreimage/ciimage/init(image:options:).md)
- [init(contentsOf:)](coreimage/ciimage/init(contentsof:).md)
- [init(contentsOf:options:)](coreimage/ciimage/init(contentsof:options:).md)
- [imageWithContentsOfURL:options:](coreimage/ciimage/imagewithcontentsofurl:options:.md)
- [imageWithCGImage:](coreimage/ciimage/imagewithcgimage:.md)
- [init(cgImage:)](coreimage/ciimage/init(cgimage:)-2kvvb.md)
- [imageWithCGImage:options:](coreimage/ciimage/imagewithcgimage:options:.md)
- [init(cgImage:options:)](coreimage/ciimage/init(cgimage:options:)-8663h.md)
- [imageWithCGImageSource:index:options:](coreimage/ciimage/imagewithcgimagesource:index:options:.md)
- [init(cgImageSource:index:options:)](coreimage/ciimage/init(cgimagesource:index:options:)-e2bz.md)
- [imageWithData:](coreimage/ciimage/imagewithdata:.md)
- [init(data:)](coreimage/ciimage/init(data:).md)
- [imageWithData:options:](coreimage/ciimage/imagewithdata:options:.md)
