Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ��g��wW�H����Xx��
Binary file added testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ�؊�'�x�&��t���i�7��wpg
Binary file added testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ����w���x����`���
Binary file added testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ���%�xwx���xHwx�p�=�
Binary file added testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ���5��yxww�wH�f�`Wv
Expand Down
Binary file added testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ���xx��x|x�xy3tD
Binary file added testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ�!-�z�w���uxW���p�7
22 changes: 22 additions & 0 deletions testdata/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Thumbhash Test Data

This directory holds the https://evanw.github.io/thumbhash/ examples as
individual files.

The `*.th` files hold thumbhash-encoded data, prepended with a 3-byte magic
string so that `/usr/bin/file` (if its Magdir database was updated) or similar
programs can identify the data as thumbhash-formatted data.

That 3-byte magic string is "\xC3\xBE\xFE", which is arbitrary and not part of
the original thumbhash description or implementation. But "\xC3\xBE" is the
UTF-8 encoding of 'þ' (U+00FE LATIN SMALL LETTER THORN) and "\xFE" is invalid
UTF-8 but is the ISO-8859-1 encoding of 'þ'. The Old English letter 'þ' is
pronounced like the "th" that starts "thumbhash".

The `*.png` files hold the decodings of the `*.th` files, as produced by that
web page. Its JavaScript PNG encoder favors implementation simplicity over
maximizing compression ratio.

The filenames' base names are the base64url encoding (similar to but slightly
different from the base64std encoding used on that web page) of the thumbhash
data (without the magic string).
Binary file added testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.th
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
þ�V
��Vou�zwh���xO�
Expand Down
Binary file added testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.th
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
þ�`��= ;�Yl��Ei���'Xv�pvG