Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gh123man/swiftvips
A lightning fast image processing and resizing library for Swift
https://github.com/gh123man/swiftvips
swift vips vips-image
Last synced: 3 months ago
JSON representation
A lightning fast image processing and resizing library for Swift
- Host: GitHub
- URL: https://github.com/gh123man/swiftvips
- Owner: gh123man
- Created: 2023-03-25T00:18:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-13T02:57:32.000Z (9 months ago)
- Last Synced: 2024-05-13T03:39:01.266Z (9 months ago)
- Topics: swift, vips, vips-image
- Language: Swift
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## A lightning fast image processing and resizing library for Swift
This package wraps the core functionality of [libvips](https://github.com/libvips/libvips) image processing library. This library is still under development and only exposes a subset of the vips API. It works on both Mac and Linux.
## Dependencies
### MacOS
Use [homebrew](https://brew.sh/) to install vips and pkg-config:
```bash
brew install vips pkg-config
```### Ubuntu
```bash
apt install libvips-dev -y
```## Usage
```swift
import SwiftVipslet testPng: Data = // load data
let png = try VImage(from: testPng)
try png.resize(scale: 0.5)
let jpgData = try png.toJpeg(quality: 50)```