---
title: "image(at:)"
framework: mediaplayer
role: symbol
role_heading: Instance Method
path: "mediaplayer/mpmediaitemartwork/image(at:)"
---

# image(at:)

Returns the artwork image for an item at the given size.

## Declaration

```swift
func image(at size: CGSize) -> UIImage?
```

```swift
func image(at size: CGSize) -> NSImage?
```

## Parameters

- `size`: The size, in points, for the new doc://com.apple.documentation/documentation/UIKit/UIImage object.

## Return Value

Return Value The artwork at the requested size.

## Discussion

Discussion The returned image is the smallest available image that’s at least as large as the requested size.

## See Also

### Related Documentation

- [iPod Library Access Programming Guide](apple-archive/documentation/Audio/Conceptual/iPodLibraryAccess_Guide/Introduction.md)

### Using a media item image

- [bounds](mediaplayer/mpmediaitemartwork/bounds.md)
