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)
⭐️ 1
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/sciasxp/SwiftQOI.git", from: "0.3.0")

SwiftQOI

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.

Installing

SPM

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"),

Features

  • 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

Encode

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

Decode

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

## Future Work

  1. Improve unit tests.

  2. Improve documentation.

  3. Support for cocoapods

Contributing

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: [email protected])

Visit:  LinkdIn

GitHub

link
Stars: 1
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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