patat icon indicating copy to clipboard operation
patat copied to clipboard

Support for Sixel

Open matoken opened this issue 1 year ago • 2 comments

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?

  • https://en.wikipedia.org/wiki/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.

matoken avatar Jan 28 '24 20:01 matoken

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 avatar Jan 29 '24 17:01 jaspervdj

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:-
```

jaspervdj avatar Jan 31 '24 14:01 jaspervdj