---
title: "processImages(textelDensity:styleImageDestination:contentImagesDestination:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mlstyletransfer/datasource/processimages(texteldensity:styleimagedestination:contentimagesdestination:)"
---

# processImages(textelDensity:styleImageDestination:contentImagesDestination:)

Converts the content images to square images and saves them to a destination directory.

## Declaration

```swift
func processImages(textelDensity: Int, styleImageDestination: URL? = nil, contentImagesDestination: URL? = nil) throws -> (processedStyleImage: URL, processedContentImages: URL)
```

## Parameters

- `textelDensity`: The length of a side, in pixels, of the destination image. The value must be a multiple of 4 in the range [64, 1024].
- `styleImageDestination`: A location in the file system to save the converted style image to. If nil, Create ML saves the image to a temporary file location.
- `contentImagesDestination`: A location in the file system to save the converted content image to. If nil, Create ML saves the image to a temporary file location.

## Return Value

Return Value A tuple of two URLs:
