tree: a34c5734034730698b96c9ecb99118c81862cffd
  1. artificial/
  2. bricks-color.bmp
  3. bricks-color.jpeg
  4. bricks-color.lossless.webp
  5. bricks-color.lossy.webp
  6. bricks-color.png
  7. bricks-color.tiff
  8. bricks-dither.bmp
  9. bricks-dither.gif
  10. bricks-dither.indexes
  11. bricks-dither.indexes.giflzw
  12. bricks-dither.lossless.webp
  13. bricks-dither.palette
  14. bricks-dither.png
  15. bricks-gray.bmp
  16. bricks-gray.gif
  17. bricks-gray.indexes
  18. bricks-gray.indexes.giflzw
  19. bricks-gray.jpeg
  20. bricks-gray.lossless.webp
  21. bricks-gray.lossy.webp
  22. bricks-gray.png
  23. bricks-gray.tiff
  24. bricks-nodither.bmp
  25. bricks-nodither.gif
  26. bricks-nodither.indexes
  27. bricks-nodither.indexes.giflzw
  28. bricks-nodither.lossless.webp
  29. bricks-nodither.palette
  30. bricks-nodither.png
  31. harvesters.bmp
  32. harvesters.gif
  33. harvesters.jpeg
  34. harvesters.lossless.webp
  35. harvesters.lossy.webp
  36. harvesters.png
  37. harvesters.tiff
  38. hat.bmp
  39. hat.gif
  40. hat.jpeg
  41. hat.lossless.webp
  42. hat.lossy.webp
  43. hat.png
  44. hat.tiff
  45. hibiscus.bmp
  46. hibiscus.gif
  47. hibiscus.jpeg
  48. hibiscus.lossless.webp
  49. hibiscus.lossy.webp
  50. hibiscus.png
  51. hibiscus.tiff
  52. midsummer.txt
  53. midsummer.txt.gz
  54. midsummer.txt.zlib
  55. pi.txt
  56. pi.txt.giflzw
  57. pi.txt.gz
  58. pi.txt.zlib
  59. pjw-thumbnail.bmp
  60. pjw-thumbnail.gif
  61. pjw-thumbnail.jpeg
  62. pjw-thumbnail.lossless.webp
  63. pjw-thumbnail.lossy.webp
  64. pjw-thumbnail.png
  65. pjw-thumbnail.tiff
  66. README.md
  67. romeo.txt
  68. romeo.txt.fixed-huff.flate
  69. romeo.txt.flate
  70. romeo.txt.gz
  71. romeo.txt.zlib
test/testdata/README.md

Unless otherwise noted, the *.gz files were generated by the gzip command line tool and the *.flate and *.zlib versions were then generated by script/extract-flate-offsets.go. Similarly, the *.giflzw files were generated by script/extract-giflzw.go and the *.palette and *.indexes files were generated by script/extract-palette-indexes.go

The .jpeg files are usually the canonical versions of the testdata images, and other versions (.bmp, *.gif, *.png, *.tiff) were generated by ImageMagick's convert command line tool. The *.webp versions were generated by the cwebp command line tool.

The artificial directory holds artificially generated test data, often to explicitly test corner cases of various file formats. The files there usually come in families whose names have a common prefix, such as three files “foo.bar”, “foo.bar.qux”, “foo.bar.commentary.txt” all prefixed by “foo.bar”. The file whose name is that prefix is usually the canonical (typically hand-crafted) file, and the other files are then derived from that. Outside of the artificial directory, the other files in this directory are typically real world examples of various file formats, or deriviations of them.

bricks-* are various encodings of an original photo by Nigel Tao nigeltao@golang.org.

harvesters.* are various encodings of a photo of “The Harvesters” by Pieter Bruegel the Elder, held by the Metropolitan Museum of Art. http://www.metmuseum.org/art/collection/search/435809 lists that image as in the public domain.

hat.* are various encodings of a photo of “Self-Portrait with a Straw Hat (obverse: The Potato Peeler)” by Vincent van Gogh, held by the Metropolitan Museum of art. http://www.metmuseum.org/art/collection/search/436532 lists that image as in the public domain.

hibiscus.* are various encodings of a photo of “Hibiscus and Parrots” by Louis Comfort Tiffany, held by the Metropolitan Museum of Art. http://www.metmuseum.org/art/collection/search/13503 lists that image as in the public domain.

http://www.metmuseum.org/about-the-met/policies-and-documents/image-resources says that “You are welcome to use images of artworks in The Met collection that the Museum believes to be in the public domain, or those to which the Museum waives any copyright it might have, for any purpose, including commercial and noncommercial use, free of charge and without requiring permission from the Museum.”

midsummer.txt is an excerpt of Shakespeare‘s "A Midsummer Night’s Dream", copied from http://shakespeare.mit.edu/midsummer/midsummer.1.1.html

pi.txt contains the digits of pi.

pjw-thumbnail.* are various encodings of an image derived from an iconic, original photo of Peter J. Weinberger by Rob Pike r@golang.org.

romeo.txt is an excerpt of Shakespeare's “Romeo and Juliet”, copied from http://shakespeare.mit.edu/romeo_juliet/romeo_juliet.2.2.html

romeo.txt.fixed-huff.flate was derived from romeo.txt by a custom program to use fixed (not dynamic) Huffman tables for the flate encoding.