aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/tests/sixel/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/tests/sixel/README.md')
-rw-r--r--alacritty_terminal/tests/sixel/README.md50
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.