This itsy-bitsy script is like, totally magic! It takes your boring old images and makes them all QOI-ified! (ノ◕ヮ◕)ノ*:・゚✧ It's super duper fast and efficient, just like a ninja bunny! 🐇💨
This code takes an image, encodes it using the amazing QOI format, and then decodes it back. Think of it like a secret code for your pictures! (づ。◕‿‿◕。)づ
graph TD
A["Image (png, jpg, etc...)"] --> B("QOI Encoder ☆*: .。. o(≧▽≦)o .。.:*☆");
B --> C["QOI File (。・ω・。)ノ♡"];
C --> D("QOI Decoder ✨(⌒∇⌒)✨");
D --> E["Image (png)"];
- Install Pillow: You'll need the Pillow library for image magic! Use pip:
pip install Pillow
- Run the script: Just type
python your_script_name.py image.png
in your terminal, replacingimage.png
with the name of your image file. (⌒‿⌒) - Ta-da!: You'll get two new files:
image.qoi
(the encoded QOI file) andimage.png
(the decoded PNG image). 💖💖💖
python qoi_script.py my_cute_kitten.jpg
This will create my_cute_kitten.qoi
and my_cute_kitten.png
. (=^・ω・^=)
This code is just for fun and learning! It might not be perfect, but it's made with love and sparkles! ✨💖✨ Please be nice to it! (๑˃̵ᴗ˂̵)و
That's all folks! Have fun QOI-fying your images! (ノ´ヮ´)ノ*: ・゚