An open API service indexing awesome lists of open source software.

https://github.com/wangrunji0408/heif-thumbnailer

A Swift library for extracting thumbnails from HEIC images.
https://github.com/wangrunji0408/heif-thumbnailer

heif swift thumbnail

Last synced: 3 months ago
JSON representation

A Swift library for extracting thumbnails from HEIC images.

Awesome Lists containing this project

README

          

# HeifThumbnailer

A fast and efficient Swift library for extracting thumbnails from HEIF images.

## Installation

### Swift Package Manager

Add this to your `Package.swift`:

```swift
dependencies: [
.package(url: "https://github.com/wangrunji0408/heif-thumbnailer", from: "1.0.0")
]
```

## Usage

### Library Usage

```swift
import HeifThumbnailer

// Create a read function for your HEIC file
let readAt: (UInt64, UInt32) async throws -> Data = { offset, length in
// Your file reading implementation
return fileData.subdata(in: Int(offset)..