Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 440 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 440 Bytes

SwiftVIPS

A thin Swift wrapper around libvips. Work in progress...

How to use

// call once per app before using VIPS
try VIPS.start()

// load an image from a file, create a thumbnail and save to new file
try VIPSImage(fromFilePath: "my-example.jpg")
    .thumbnailImage(width: 100, height: 100, crop: .attention)
    .write(toFilePath: "my-example-cropped.jpg", quality: 80)