<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/droste()",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)drosteFilter"
  },
  "title" : "droste()"
}
-->

# droste()

Stylizes an image with the Droste effect.

```
class func droste() -> any CIFilter & CIDroste
```

## Return Value

The distorted image.

## Discussion

This method applies the Droste filter to an image. This effect creates a Droste effect that distorts the image by repeating smaller versions of the same image within itself.

The Droste filter uses the following properties:

- `inputImage`: An image with the type [`CIImage`](/documentation/CoreImage/CIImage).
- `rotation`: A `float` representing the angle of the rotation, in radians, as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `zoom`: A `float` representing the zoom of the effect as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `periodicity`: A float representing the amount of intervals as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.
- `inputInsetPoint1`: A <doc://com.apple.documentation/documentation/CoreFoundation/CGPoint> representing the x and y position that defines the first inset point.
- `inputInsetPoint0`: A <doc://com.apple.documentation/documentation/CoreFoundation/CGPoint> representing the x and y position that defines the second inset point.
- `inputStrands`: A float representing the amount of strands as an <doc://com.apple.documentation/documentation/Foundation/NSNumber>.

The following code creates a filter that results in the image becoming a repeated, scaled pattern:

```swift
func drosteFilter(inputImage: CIImage) -> CIImage {
    let filter = CIFilter.droste()
    filter.inputImage = inputImage
    filter.insetPoint1 = CGPoint(
        x: inputImage.extent.size.width * 0.2,
        y: inputImage.extent.size.height * 0.2
    )
    filter.insetPoint0 = CGPoint(
        x: inputImage.extent.size.width * 0.8,
        y: inputImage.extent.size.height * 0.8
    )
    filter.periodicity = 1
    filter.rotation = 0
    filter.strands = 1
    filter.zoom = 1
    return filter.outputImage!.cropped(to: inputImage.extent)
}
```

![Two images arranged horizontally. The left image contains a photograph of a vineyard with a partially cloudy sky. The right image shows the result of applying a Droste filter. A portion of the image has been rotated and then repeatedly scaled.](images/com.apple.coreimage/media-4407275@2x.png)

---

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)