<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/ImageReader",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents11ImageReaderV"
  },
  "title" : "ImageReader"
}
-->

# ImageReader

An image file reader.

```
struct ImageReader
```

## Topics

### Creating the transformer

[`init()`](/documentation/CreateMLComponents/ImageReader/init())

Creates an image reader.

### Reading an image

[`static func read(url: URL) throws -> CIImage`](/documentation/CreateMLComponents/ImageReader/read(url:))

Reads an image URL as a `CIImage`.

### Performing the transformation

[`func applied(to: URL, eventHandler: EventHandler?) throws -> CIImage`](/documentation/CreateMLComponents/ImageReader/applied(to:eventHandler:))

Reads an image URL as a `CIImage`.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`Transformer`](/documentation/CreateMLComponents/Transformer)

---

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)