SloppyQOI - QOI image format encoder/decoder

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

SloppyQOI - QOI image format encoder/decoder

Post by ReFreezed »

So, I mostly just made this library for fun, but it seems using QOI could actually be beneficial in some cases.

First of all, what is QOI (or The Quite OK Image Format)? It's a new, very simple, lossless image format, kind of comparable to PNG, but encodes and decodes faster at the cost of some space. Even a QOI library made in Lua/LuaJIT is faster than the C++ code LÖVE uses to load PNGs!

SloppyQOI on GitHub
Direct link to library file

Usage:

Code: Select all

local qoi         = require("qoi")
local playerImage = qoi.load("images/player.qoi")
love.graphics.draw(playerImage)
See the top of qoi.lua for documentation.

----------------

I found out about QOI from this video. It mentions the format after explaining how compression works in PNG files (which is also interesting).
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
milon
Party member
Posts: 472
Joined: Thu Jan 18, 2018 9:14 pm

Re: SloppyQOI - QOI image format encoder/decoder

Post by milon »

Very cool! Thanks for making this library!
Any code samples/ideas by me should be considered Public Domain (no attribution needed) license unless otherwise stated.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 56 guests