diff options
author | Josh Rahm <rahm@google.com> | 2021-10-05 14:36:31 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2021-10-05 14:36:31 -0600 |
commit | 7a209fa45f1f4d07cb4a885e8ea3d03e47cf48ae (patch) | |
tree | 026d75fdc19e19952cfba3020c118f24df4ac412 /alacritty_terminal/tests/sixel/README.md | |
parent | 1725e30e144b04e2e2e30efc76eb968c97a0eabf (diff) | |
parent | 98fbb3f9285d8c00836e3bcfa6e1e13bf809e2a2 (diff) | |
download | r-alacritty-7a209fa45f1f4d07cb4a885e8ea3d03e47cf48ae.tar.gz r-alacritty-7a209fa45f1f4d07cb4a885e8ea3d03e47cf48ae.tar.bz2 r-alacritty-7a209fa45f1f4d07cb4a885e8ea3d03e47cf48ae.zip |
Merge remote-tracking branch 'betaboon/graphics' into experimental
Diffstat (limited to 'alacritty_terminal/tests/sixel/README.md')
-rw-r--r-- | alacritty_terminal/tests/sixel/README.md | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/alacritty_terminal/tests/sixel/README.md b/alacritty_terminal/tests/sixel/README.md new file mode 100644 index 00000000..c01deae9 --- /dev/null +++ b/alacritty_terminal/tests/sixel/README.md @@ -0,0 +1,50 @@ +# Images for Sixel tests + +The files in this directory are used to test the Sixel parser against images +generated by real-world software: + +* `testimage_im6.sixel` + + Generated with ImageMagick 6.9.10. + + ```bash + convert "$SOURCE" testimage_im6.sixel + ``` + +* `testimage_libsixel.sixel` + + Generated with libsixel 1.8.6. + + ```bash + img2sixel -o testimage_libsixel.sixel "$SOURCE" + ``` + +* `testimage_ppmtosixel.sixel` + + Generated with Netpbm 10. + + ```bash + pngtopnm "$SOURCE" \ + | ppmquant 256 \ + | ppmtosixel \ + > testimage_ppmtosixel.sixel + ``` + +In the previous commands, `$SOURCE` is defined as: + + SOURCE="$(git rev-parse --show-toplevel)/alacritty/alacritty.png" + +The image is the [Alacritty icon](../../../extra/logo/compat/alacritty-term.png). + +To verify the results of the parser we include the raw RGBA data for each +image. It was generated with this script: + +```bash +for IMG in *.sixel +do + convert "$IMG" png:- | convert -depth 8 png:- rgba:"${IMG/.sixel/.rgba}" +done +``` + +We have to convert the Sixel to PNG before RGBA because, for some reason, +ImageMagick can't transform from Sixel to RGBA directly. |