Skip to content
/ qoi Public

Encode/Decode the images in “Quite OK Image” (QOI) format

License

Notifications You must be signed in to change notification settings

cgurkan/qoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python implementation of a QOI “Quite OK Image” image converter. It writes PIL Images (PNG files) into QOI files or Opens QOI files and loads them as PIL Images (PNG file).

Original implementation for QOI format can be found on this link.

Setup

pip install -r requirements.txt

Usage

usage: qoi.py [-h] [-opr OPERATION] -f FILE_PATH [-o [OUT_PATH]]

optional arguments:
  -h, --help            show this help message and exit
  -opr OPERATION, --operation OPERATION
                        operation to perform (e)ncode or (d)ecode
  -f FILE_PATH, --file-path FILE_PATH
                        path to image file to be encoded(png) or decoded (qoi)
  -o [OUT_PATH], --out-path [OUT_PATH]
                        path to encoded (qoi) or decoded (png) image file

Test

Encoding:
python .\qoi.py -opr e -f 001.png -o out.qoi
Decoding
python .\qoi.py -opr d -f 001.qoi -o out.png

License

This project is licensed under the MIT License.

About

Encode/Decode the images in “Quite OK Image” (QOI) format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages