<!--
{
  "availability" : [
    "macOS: 10.6.0 - 15.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "QuickLook",
  "identifier" : "/documentation/QuickLook/QLThumbnailCopyImage(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Quick Look"
    ],
    "preciseIdentifier" : "c:@F@QLThumbnailCopyImage"
  },
  "title" : "QLThumbnailCopyImage(_:)"
}
-->

# QLThumbnailCopyImage(_:)

Returns a thumbnail image.

```
func QLThumbnailCopyImage(_ thumbnail: QLThumbnail!) -> Unmanaged<CGImage>!
```

## Parameters

`thumbnail`

The thumbnail to compute.

## Return Value

A thumbnail image, or `NULL` if the Quick Look framework can’t create a thumbnail.

## Discussion

If you call this function directly without using [`QLThumbnailDispatchAsync(_:_:_:)`](/documentation/QuickLook/QLThumbnailDispatchAsync(_:_:_:)), this function blocks the calling thread until it finishes computing the thumbnail.

---

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)