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

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

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

heif swift thumbnail

Last synced: about 2 months ago
JSON representation

A Swift library for extracting thumbnails from images.

Awesome Lists containing this project

README

          

# ImageThumbnailer

A fast and efficient Swift library for extracting thumbnails from various image formats including HEIF, JPEG, and Sony ARW files.

## Installation

### Swift Package Manager

Add this to your `Package.swift`:

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

## Usage

### Library Usage

```swift
import ImageThumbnailer

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