Swift JPEG is a cross-platform pure Swift framework for decoding, inspecting, editing, and encoding JPEG images. The core framework has no external dependencies, including Foundation, and should compile and provide consistent behavior on all Swift platforms. The framework supports additional features, such as file system support, on Linux and MacOS.
jpeg
Swift JPEG is a cross-platform pure Swift framework for decoding, inspecting, editing, and encoding JPEG images. The core framework has no external dependencies, including Foundation, and should compile and provide consistent behavior on all Swift platforms. The framework supports additional features, such as file system support, on Linux and MacOS.
Swift JPEG is available under the Mozilla Public License 2.0. The example programs are public domain and can be adapted freely.
tutorials and example programs
api reference
JPEG.JPEG
JPEG.General
JPEG.System
getting started
To Swift JPEG in a project, add this descriptor to the
dependencies
list in yourPackage.swift
:basic usage
Decode an image:
Encode an image: