jaspervdj / patat

Terminal-based presentations using Pandoc
GNU General Public License v2.0
2.42k stars 60 forks source link

Support for Sixel #161

Open matoken opened 8 months ago

matoken commented 8 months ago

Hello. I have presented at mdp several times, but I am excited to have found this project that can handle images. No plans for Sixel?

If it supports Sixel, the number of compatible devices will increase, and I think it will be possible to share presentations with images over the web using ttyd.

jaspervdj commented 8 months ago

I must admit I had not heard of Sixel before. I will take a look, it seems like a really good match for patat and I hope to include it soon.

jaspervdj commented 8 months ago

Was playing around with this yesterday night. Worth noting that you can already display images using sixel with eval settings.

For example:

---
patat:
  eval:
    sixel:
      command: sh
      replace: true
      fragment: false
      wrap: rawInline
...

# Sixel images

See, for example:

```sixel
convert -resize 480 "$HOME/Downloads/haskell-logo.png" sixel:-
```