Remove ImageMagick support #157
Labels
compatibility
Compatibility (e.g. terminal quirks)
security
Potential security issue
tidiness
Code organization and compliance
ImageMagick is a complex dependency that's hard to support. While it's an extremely versatile library, it's also got a kitchen sink approach that includes spawning external processes, causing inadvertent resource exhaustion and security issues. It would be nice to remove this dependency to cut down on risk/maintenance/packaging footprint.
That would leave the
chafa
CLI tool with support for the following formats: GIF, JPEG, PNG, SVG, TIFF, WebP, XWD. We may want to add support for AVIF as mentioned in #98 first. Potentially other important image formats too (suggestions welcome).We'd lose support for formats like PDF (which many distributions disable anyway) and all video transcoding via IM (ew!). Users who want to keep using these can pipe to stdin like in the following examples:
ffmpeg -i https://i.imgur.com/sa1Tz6q.mp4 -f gif - | chafa -d inf
convert https://oig.nasa.gov/docs/IG-21-025.pdf[0] gif:- | chafa -t 1 --bg white
...and the performance will be better too.
The text was updated successfully, but these errors were encountered: