Images in the Terminal with Rust banner

Images in the Terminal with Rust

7 devlogs
4h 30m 23s

A PNG parser and viewer written from scratch in Rust for use in the terminal.

This project uses AI

AI was used to help with debugging the chunk division and decoding process.

LumiLovesYou

I’ve got a few more of the images working. Through this I’ve decided to make the system lossy and only store u8 values instead of up to u16. I might change this in the future but the loss in image quality isn’t the worst.

Attachment
0
LumiLovesYou

I’ve finally returned to this project! My last problem was I couldn’t get a test image to work quite right. Turns out that was because it was interlaced! I’ve solved that by restructuring my code a bit and adding support for interlaced images. Now it works! Yay :3

Attachment
0
LumiLovesYou

It works! I got my second test image to work! :DDD
Now to just test like seven more images and fix any problems with them…
(Just going to use schaik.com/pngsuite for that)

Attachment
0
LumiLovesYou

Getting closer! I’ve got colour mode 6 (true colour + transparency) almost working, just trying to get line filters working!

Attachment
0
LumiLovesYou

I spent like twenty minutes working on and reading about the image background chunk before I realised both it’s officially considered optional according to PNG’s specifications and that it would require some weird Rust structure so I just deleted it all and decided to skip the chunk if it shows up 😭

Attachment
0