Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Available image format? #101

Closed
kyoheiu opened this issue Aug 6, 2022 · 7 comments
Closed

Available image format? #101

kyoheiu opened this issue Aug 6, 2022 · 7 comments

Comments

@kyoheiu
Copy link

kyoheiu commented Aug 6, 2022

Hi,
I'd like to use chafa in my TUI file manager https://github.com/kyoheiu/felix to show image preview, but is there a list of image (and video?) format that chafa can convert?
Thanks in advance.

@hpjansson
Copy link
Owner

Hey, that looks like a cool project. If you issue chafa --version, you will see a line that says Loaders: .... That's the list of supported formats.

GIF, PNG and XWD are built-in and will always be present. There can be other formats, but those are optional and depend on how Chafa was built. Unfortunately there is no video support yet, only animated GIF and WebP. There may be ffmpeg support at some point, see #98.

If "ImageMagick" is listed, that means we support all the ImageMagick formats (i.e. identify -list format) as a fallback. ImageMagick support will be removed soon, though, due to dependency/security concerns. If there are unusual image/video formats you want to see support for, feel free to open issues (or even better, PRs).

At some point it would also be nice to have Rust bindings for libchafa.

@kyoheiu
Copy link
Author

kyoheiu commented Aug 6, 2022

Thank you for the details! So at least GIF, PNG, and XWD are supported, and the other formats depend on the user's environment, which means it is difficult to determine in advance exactly which formats are supported, right?
(I don't think it is necessary to determine exactly though).

@hpjansson
Copy link
Owner

Sorry, forgot to add that with all optional loaders compiled in, the list looks like this:

GIF ImageMagick JPEG PNG SVG TIFF WebP XWD

@hpjansson
Copy link
Owner

Right, it depends on the platform. Packaging has been pretty good, though -- every Linux distro I've checked builds in all the loaders above.

@kyoheiu
Copy link
Author

kyoheiu commented Aug 7, 2022

Thank you again!
FYI, in macOS (11.6 BIg Sur, Intel) the list is GIF ImageMagick JPEG PNG TIFF WebP XWD.

@kyoheiu kyoheiu closed this as completed Aug 7, 2022
@kyoheiu
Copy link
Author

kyoheiu commented Aug 11, 2022

I released felix v1.1.0 https://github.com/kyoheiu/felix , which uses chafa binary to preview image files. Thank you for making this great software!

@hpjansson
Copy link
Owner

Cool, I'll add it to the application list on the development page :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants