Open Source Swift Library for Image Processing
Free Swift API provides the capability to handle image processing tasks such as images rotation, flipping and resizing images, cropping image, image conversion to other format, and many more
SwiftImage is a very powerful Swift image processing open source library that enables software developers to work with different kinds of images using Swift code. The library can easily access pixels of the images and modify them according to as required. It is a high-performance e image library that gives developers the capability to download, cache, and process images with ease
The SwiftImage library is very stable as well as feature-rich and has included several important features for handling their images such as rotating images, flipping and resizing images, image cropping, image conversion to other formats, applying filters and image Binarization, and many more. The library is very powerful and can convert a RGBA image to Grayscale with just one-liner code.
One great feature of SwiftImage library is that it supports the copy-on-write process that’s why image instances can never be shared and defensive copying is unnecessary. The library uses Image with the RGBA type which is a generic type and represents various formats of pixels. The library also supports gray-scale images without nested parameters. It supports both 8-bit and 16-bit Grayscale images.
At A Glance
An overview of SwiftImage features.
- Convert images
- Rotating images
- Modify Images
- Image effects
- flipping Images
- Apply filters
- Gaussian blur
- Resizing images
- Cropping images
- image reading
SwiftImage supports the popular Image file formats listed below.
SwiftImage only requires Swift to be installed.
Getting Started with SwiftImage
You can easily install SwiftImage is using Swift Package Manager. Please use the following command for a smooth installation.
Install SwiftImage via Github
.package(url: "https://github.com/koher/swift-image.git", from: "0.7.0"),
Clone the latest sources using the following command.
Image Resizing via Swift
The open source SwiftImage library gives software developers the capability to resize images inside their own Swift applications with a couple of lines of code. The library makes it easy for software developers to load and resize images using several important functions such as resize an image by providing width & height, crop an image to custom size, apply a filter to an image, and many more.
Rotate, Flip or iterate Images via Swift API
The SwiftImage library has provided complete support for programmatically rotating as well as Flipping images using Swift commands. Developers can use different available functions to flip the image, such as flipping images horizontally as well as vertically. Developers can also flip as well as iterate images according to their own needs and save it back on disk at the place of their choice.
Image Filtering Support via Swift
Image filtering is a very useful technique that helps developers to modify or enhance images with ease. The open source SwiftImage library has provided different types of very useful filters that can be applied to images to enhance their properties inside Swift applications. The library supports several important filters such as mean filter, Gaussian filter, enhanced edges, blur images, image brightness, and many more.