diff --git a/testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.png b/testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.png new file mode 100644 index 0000000..c999054 Binary files /dev/null and b/testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.png differ diff --git a/testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.th b/testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.th new file mode 100644 index 0000000..434219a --- /dev/null +++ b/testdata/1QcSHQRnh493V4dIh4eXh1h4kJUI.th @@ -0,0 +1 @@ +þgwWHXx \ No newline at end of file diff --git a/testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.png b/testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.png new file mode 100644 index 0000000..8e35db5 Binary files /dev/null and b/testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.png differ diff --git a/testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.th b/testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.th new file mode 100644 index 0000000..77f9a36 --- /dev/null +++ b/testdata/2IqDBQQnxnj0JoLYdM3f8ahpuDeHiHdwZw.th @@ -0,0 +1 @@ +þ؊'x&ti7wpg \ No newline at end of file diff --git a/testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.png b/testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.png new file mode 100644 index 0000000..202d6ee Binary files /dev/null and b/testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.png differ diff --git a/testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.th b/testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.th new file mode 100644 index 0000000..ce497b8 --- /dev/null +++ b/testdata/2fcZFIB3iId_h3iJh4aIYJ2V8g.th @@ -0,0 +1 @@ +þwx` \ No newline at end of file diff --git a/testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.png b/testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.png new file mode 100644 index 0000000..7e32a7c Binary files /dev/null and b/testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.png differ diff --git a/testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.th b/testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.th new file mode 100644 index 0000000..1662f24 --- /dev/null +++ b/testdata/3OcRJYB4d3h_iIeHeEh3eIhw-j3A.th @@ -0,0 +1 @@ +þ%xwxxHwxp= \ No newline at end of file diff --git a/testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.png b/testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.png new file mode 100644 index 0000000..fc12c3f Binary files /dev/null and b/testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.png differ diff --git a/testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.th b/testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.th new file mode 100644 index 0000000..5c6490c --- /dev/null +++ b/testdata/3PcNNYSFeXh_d3eld0iHZoZgVwh2.th @@ -0,0 +1 @@ +þ 5yxwwwHf`Wv \ No newline at end of file diff --git a/testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.png b/testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.png new file mode 100644 index 0000000..4e58182 Binary files /dev/null and b/testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.png differ diff --git a/testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.th b/testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.th new file mode 100644 index 0000000..23ce751 --- /dev/null +++ b/testdata/HBkSHYSIeHiPiHh8eJd4eTN0EEQG.th @@ -0,0 +1 @@ +þxxx|xxy3tD \ No newline at end of file diff --git a/testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.png b/testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.png new file mode 100644 index 0000000..13aab3b Binary files /dev/null and b/testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.png differ diff --git a/testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.th b/testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.th new file mode 100644 index 0000000..27b529f --- /dev/null +++ b/testdata/IQgSLYZ6iHePh4h1eFeHh4dwgwg3.th @@ -0,0 +1 @@ +þ!-zwuxWp7 \ No newline at end of file diff --git a/testdata/README.md b/testdata/README.md new file mode 100644 index 0000000..c7be274 --- /dev/null +++ b/testdata/README.md @@ -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). diff --git a/testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.png b/testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.png new file mode 100644 index 0000000..e49afdd Binary files /dev/null and b/testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.png differ diff --git a/testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.th b/testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.th new file mode 100644 index 0000000..8ee9ae5 --- /dev/null +++ b/testdata/VggKDYAW6lZvdYd6d2iZh_p4GE_k.th @@ -0,0 +1,2 @@ +þV + VouzwhxO \ No newline at end of file diff --git a/testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.png b/testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.png new file mode 100644 index 0000000..3628e49 Binary files /dev/null and b/testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.png differ diff --git a/testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.th b/testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.th new file mode 100644 index 0000000..cea2dce --- /dev/null +++ b/testdata/YJqGPQw7sFlslqhFafSE-Q6oJ1h2iHB2Rw.th @@ -0,0 +1 @@ +þ`= ;YlEi'XvpvG \ No newline at end of file