Home

Awesome

dqoi ('dart_qoi')

Pub likes pub points
GitHub stars GitHub issues GitHub PRs

A Dart implementation of the "Quite OK Image Format", with a command line interface for console use and a library for use in applications.

Based off of the official C implementation and other implementations.

Supporting Me

I'm an under-18 currently living in the UK, and I am in full-time education. I work on this project and all of my others in my spare time, and I currently have no stable income due to my age - although I aspire to work in software/mobile development in the future.
If you have any change to spare, I'd be grateful for any amount, big or small :D. Every donation gives me 'mental fuel' to continue this project, and lets me know that I'm doing a good job. I'll be happy to give you a place on the documentation website's credits, and a shoutout in every release/CHANGELOG.

You can read more about me and what I do on my GitHub Sponsors page, where you can donate as well.

Sponsor Me Via GitHub Sponsors

Alternatively, if you prefer not to use GitHub Sponsors, please feel free to use my Ko-fi. Note that the PayPal backend will take a small percentage amount of donations made through this method.

Command Line Interface

An easy to use CLI is provided to get working with QOI!

Setup/Installation

With Dart (recommended)

If you have Dart installed, you can use the CLI on any operating system!
Just run the command dart pub global activate dqoi (with administrator/root privileges), then you can use the command dqoi from anywhere on your system!

Without Dart

Windows

If you don't have Dart installed, you can use the pre-compiled executable for Windows.

You can get the .exe by:

Note that Windows Defender or your anti-virus may flag the executable malicious or unwanted, as it is not signed. You'll need to make an exception for the program if this happens.

Add this file to your system path, then you can use the command dqoi from anywhere on your system!

Other Operating Systems

Unfortunately, I cannot provide executables for other operating systems at this time, as I do not have the appropriate devices.

The best way to get the executable for your OS is to install Dart, then follow the instructions above for setup with Dart.

CLI Usage

You can list the available options by just running dqoi with no arguments or with '--help'. The program will return helpful messages in the event of an error, which should be self-explanatory.

On Windows, dqoi-test.bat is provided to test the program, comparing the output files with official samples. This is not necessary to run, but may help to verify that the program is working correctly. In the event of a test failure, there will be differences shown in the console.

Application Library

Installation

There are two included libraries, each of which are very similar:

Note that both export the Channels enum from the 'image' package, but you can disable this by using hide Channels on the end of the import statement.
Also note that neither uses 'dart:io', so both are fully compatible with Web applications.

When this documentation refers to the singular "library", it means either library.

Library Usage

The QOI class provides access to conversions between binary, PNG, and QOI formats.

When extended by FlutterQOIExts, it also provides an easy way to render/paint a QOI image in a Flutter app efficiently.

You can find the full API documentation at https://pub.dev/documentation/dqoi/latest/dqoi/dqoi-library.html.

Examples

You can build and install the example application, found in the 'example/' directory. However, below are some quick useful snippets to get you started.

FAQ