Hey all, I wanted to post about the new 100% Nim JPEG decoder in Pixie.
JPEG is a super common image format but loading .jpeg files in Nim has required bindings to other libraries like stb_image. Even though stb_image is awesome, we wanted to be able to do this directly in Nim.
It turns out .jpeg files are very complicated to decode but in the end we won. Pixie can now decode color and grayscale .jpeg files, including progressive .jpegs and all sorts of other various flavors.
Using Pixie to load a .jpeg is super simple:
let image = readImage("cat.jpg")
After loading the image you can use all of the other features Pixie offers, such as paths, maksing, text, etc. Also, since Pixie gives you an RGBA buffer, you can send that data to the GPU for games.
We made a quick video highlighting the new feature here: https://www.youtube.com/watch?v=bqB8oPeSx_o
We are going to record a technical discussion very soon so I'll reply here again when we have that recorded.
Here is the technical discussion we mentioned before: https://www.youtube.com/watch?v=vYwD7OynFcg
We talk about: