Skip to content

Commit

Permalink
Adding support for AVIF and JPEG XL
Browse files Browse the repository at this point in the history
Current formula does not support viewing AVIF (AV1) files nor does it
support JPEG-XL files.
This is resolved by adding dependencies for libavif and jpeg-xl.

Native AVIF format has been supported since version 1.14.0, wherein
ImageMagick was removed. Details in chafa 107 and 157
hpjansson/chafa#107
hpjansson/chafa#157
  • Loading branch information
stevenwalton committed Sep 26, 2024
1 parent 0eda2ee commit 12259ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Formula/c/chafa.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class Chafa < Formula
depends_on "freetype"
depends_on "glib"
depends_on "jpeg-turbo"
depends_on "jpeg-xl"
depends_on "libavif"
depends_on "librsvg"
depends_on "libtiff"
depends_on "webp"
Expand All @@ -45,6 +47,6 @@ def install
output = shell_output("#{bin}/chafa #{test_fixtures("test.png")}")
assert_equal 3, output.lines.count
output = shell_output("#{bin}/chafa --version")
assert_match(/Loaders:.* JPEG.* SVG.* TIFF.* WebP/, output)
assert_match(/Loaders:.* AVIF.* JPEG.* JXL.* SVG.* TIFF.* WebP/, output)
end
end

0 comments on commit 12259ea

Please sign in to comment.