hpjansson / chafa

📺🗿 Terminal graphics for the 21st century.
https://hpjansson.org/chafa/
GNU Lesser General Public License v3.0
2.97k stars 64 forks source link

Feature request: display cover art embedded in media file #208

Open Kabouik opened 4 months ago

Kabouik commented 4 months ago

mpv --vo=sixel can show covers embedded in media files such as mp3, it would be great if chafa /some/audio/file.mp3 could do the same.

hpjansson commented 3 months ago

Hi, thanks for submitting the request. I'm a bit conflicted about it, since there's an ~infinite number of media formats, and chasing them could quickly lead to scope creep and dependency bloat. I think it makes sense to limit chafa in order to keep it small, manageable and secure, and maybe implement a separate package/tool specifically for previewing/multimedia/etc.

You can still use chafa to preview images from MP3 files - you just need to place a different tool in front of it to extract the image from the container (a quick search finds a couple, e.g. eyeD3). Chafa can take the image on stdin, so you can use it in pipelines if needed.