test/data: add official thumbhash PNG renderings

This commit is contained in:
Nigel Tao committed 2024-09-06 12:56:00 +10:00
1 parent 8c854ae702
commit 78f4e4ccc4
11 files changed
+19

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

+10
View File
@@ -27,6 +27,16 @@ package main
// slightly different from the base64.RawStdEncoding used on that web page)
// plus a ".th" extension.
//
// The foobar.png files that correspond to each foobar.th file were manually
// scraped from the https://evanw.github.io/thumbhash/ page. These PNG files
// were written by thumbhash's original JavaScript reference implementation,
// exercised by that page. This small JavaScript library favors implementation
// simplicity over maximizing the compression ratio.
//
// For any given foobar.th input file, that library's RGBA output and Wuffs'
// RGBA output may differ slightly, due to floating point versus fixed point
// rounding errors, but they're pretty close.
//
// Usage: go run make.go
import (