Skip to content

Quality Ok Image(QOI) format written in python.(WIP)

Notifications You must be signed in to change notification settings

ShampooDeng/qoi-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP QOI image format implemented in python. This is a python practice project for myself to learn qoi format and try to write an python library.

Useful resources

Test cases

test image

# make sure you have the dependencies installed
$python3 test_qoi.py
$tree --du -h ./output/
[ 13M]  .
├── [374K]  test.jpg
├── [5.9M]  test.npy
├── [3.5M]  test.png
└── [3.5M]  test.qoi

  13M used in 1 directory, 4 files

Artist

Test image from @video

Twitter Follow

Prerequisite library

conda install numpy matplotlib

todo:

  • find a way to implement sign bit in python
  • check pack_qoi_op_diff and pack_qoi_op_luma function
  • check qoi end marker when reaching the last pixel
  • support rgba images
  • add error checking when pixel value overflows
  • make it python library
  • move qoi_decode and qoi_encode into qoi.py

About

Quality Ok Image(QOI) format written in python.(WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages