KaloyanYosifov / hkb

The program to contain all needed stuff (Holy Kern Base)
0 stars 0 forks source link

Support showing images #26

Open KaloyanYosifov opened 1 month ago

KaloyanYosifov commented 1 month ago

Inspiration: https://github.com/benjajaja/ratatui-image

KaloyanYosifov commented 1 month ago

Sixel is not supported on my Alacritty (the main terminal I use) https://www.arewesixelyet.com/

Hence we will build a base character based image rendering and allow sixel for terminals that allow it.

KaloyanYosifov commented 1 month ago

This is a fun part of the application to just try out rendering images LOL

KaloyanYosifov commented 1 month ago

Maybe to also write a png decode 😄 https://www.w3.org/TR/png-3/#13Decoders

KaloyanYosifov commented 1 month ago

PNG Decoder (Delayed)

Image rendering on terminal:


Why do we need image rendering?

How are we going to implement it?

  1. We can add attach button support for reminders
  2. We could start the cli and support opening images (hkb-cli open-image)
  3. Build a prototype on the main app