Skip to content

A lightning fast image processing and resizing library for Swift

Notifications You must be signed in to change notification settings

gh123man/SwiftVips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A lightning fast image processing and resizing library for Swift

This package wraps the core functionality of 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 to install vips and pkg-config:

brew install vips pkg-config

Ubuntu

apt install libvips-dev -y 

Usage

import SwiftVips

let testPng: Data = // load data

let png = try VImage(from: testPng)
try png.resize(scale: 0.5)
let jpgData = try png.toJpeg(quality: 50)

About

A lightning fast image processing and resizing library for Swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published