Swiftpack.co - sciasxp/SwiftQOI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by sciasxp.
sciasxp/SwiftQOI 0.3.0
100% Swift base implementation of QOI (Quite OK Image Format)
⭐️ 0
🕓 4 days ago
iOS macOS
.package(url: "https://github.com/sciasxp/SwiftQOI.git", from: "0.3.0")


An QOI (Quite OK Image Format) implementation written in Swift to be used with iOS.

About QOI

QOI is compression image format.

QOI is fast. It losslessy compresses images to a similar size of PNG, while offering 20x-50x faster encoding and 3x-4x faster decoding.

You can learn more here: https://qoiformat.org

Minimum Requirements

This framework will be usable by iOS 13 and above or MacOS 10.15 and above.



SwiftQOI is available via SwiftPackage.

Add the following to you Package.swift file's dependencies:

.package(url: "https://github.com/sciasxp/SwiftQOI", from: "0.1.0"),


  • Encode and Decode image pixels representation data to/from QOI.

  • Extension to UIImage for easy handling QOI on your projects.

How to Use

import SwiftQOI


let image = UIImage(systemName: "clock")
let qoiData: Data? = image.qoiData()


let image: UIImage? = UIImage(qoi: qoiData)

## Future Work

  1. Improve unit tests.

  2. Improve documentation.

  3. Support for cocoapods


You are most welcome in contributing to this project with either new features (maybe one mentioned from the future work or anything else), refactoring and improving the code. Also, feel free to give suggestions and feedbacks. 

Created with ❤️ by Luciano Nunes.

Get in touch on [Email](https://raw.github.com/sciasxp/SwiftQOI/main/mailto: sciasxp@gmail.com)

Visit:  LinkdIn


Stars: 0
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics