tree: 7f08524bca62557df5d6cacb156656bccb4c2b73 [path history] [tgz]
  1. analysis/
  2. artificial/
  3. animated-red-blue.gif
  4. australian-abc-local-stations.json
  5. bricks-color.bmp
  6. bricks-color.jpeg
  7. bricks-color.lossless.webp
  8. bricks-color.lossy.webp
  9. bricks-color.png
  10. bricks-color.tiff
  11. bricks-dither.bmp
  12. bricks-dither.gif
  13. bricks-dither.indexes
  14. bricks-dither.indexes.giflzw
  15. bricks-dither.lossless.webp
  16. bricks-dither.palette
  17. bricks-dither.png
  18. bricks-gray.bmp
  19. bricks-gray.gif
  20. bricks-gray.indexes
  21. bricks-gray.indexes.giflzw
  22. bricks-gray.jpeg
  23. bricks-gray.lossless.webp
  24. bricks-gray.lossy.webp
  25. bricks-gray.png
  26. bricks-gray.tiff
  27. bricks-nodither.bmp
  28. bricks-nodither.gif
  29. bricks-nodither.indexes
  30. bricks-nodither.indexes.giflzw
  31. bricks-nodither.lossless.webp
  32. bricks-nodither.palette
  33. bricks-nodither.png
  34. bricks-nodither.wbmp
  35. crude-flag.nia
  36. crude-flag.nie
  37. crude-flag.nii
  38. file-sizes.json
  39. gifplayer-muybridge.gif
  40. github-tags.json
  41. harvesters.bmp
  42. harvesters.gif
  43. harvesters.jpeg
  44. harvesters.lossless.webp
  45. harvesters.lossy.webp
  46. harvesters.png
  47. harvesters.tiff
  48. hat.bmp
  49. hat.gif
  50. hat.jpeg
  51. hat.lossless.webp
  52. hat.lossy.webp
  53. hat.png
  54. hat.tiff
  55. hat.wbmp
  56. hibiscus.primitive.bmp
  57. hibiscus.primitive.gif
  58. hibiscus.primitive.jpeg
  59. hibiscus.primitive.lossless.webp
  60. hibiscus.primitive.lossy.webp
  61. hibiscus.primitive.png
  62. hibiscus.primitive.svg
  63. hibiscus.primitive.tiff
  64. hibiscus.regular.bmp
  65. hibiscus.regular.gif
  66. hibiscus.regular.jpeg
  67. hibiscus.regular.lossless.webp
  68. hibiscus.regular.lossy.webp
  69. hibiscus.regular.png
  70. hibiscus.regular.tiff
  71. hippopotamus.bmp
  72. hippopotamus.interlaced.gif
  73. hippopotamus.interlaced.png
  74. hippopotamus.interlaced.truncated.gif
  75. hippopotamus.jpeg
  76. hippopotamus.lossless.webp
  77. hippopotamus.lossy.webp
  78. hippopotamus.masked-with-muybridge.gif
  79. hippopotamus.masked-with-muybridge.png
  80. hippopotamus.regular.gif
  81. hippopotamus.regular.png
  82. hippopotamus.tiff
  83. json-things.formatted.json
  84. json-things.unformatted.json
  85. midsummer.txt
  86. midsummer.txt.gz
  87. midsummer.txt.zlib
  88. muybridge-frame-000.indexes
  89. muybridge-frame-000.wbmp
  90. muybridge-frame-001.indexes
  91. muybridge-frame-002.indexes
  92. muybridge-frame-003.indexes
  93. muybridge-frame-004.indexes
  94. muybridge-frame-005.indexes
  95. muybridge-frame-006.indexes
  96. muybridge-frame-007.indexes
  97. muybridge-frame-008.indexes
  98. muybridge-frame-009.indexes
  99. muybridge-frame-010.indexes
  100. muybridge-frame-011.indexes
  101. muybridge-frame-012.indexes
  102. muybridge-frame-013.indexes
  103. muybridge-frame-014.indexes
  104. muybridge.gif
  105. nobel-prizes.json
  106. pi.txt
  107. pi.txt.giflzw
  108. pi.txt.gz
  109. pi.txt.zlib
  110. pjw-thumbnail.bmp
  111. pjw-thumbnail.gif
  112. pjw-thumbnail.jpeg
  113. pjw-thumbnail.lossless.webp
  114. pjw-thumbnail.lossy.webp
  115. pjw-thumbnail.png
  116. pjw-thumbnail.tiff
  117. README.md
  118. romeo.txt
  119. romeo.txt.deflate
  120. romeo.txt.fixed-huff.deflate
  121. romeo.txt.gz
  122. romeo.txt.zlib
  123. sheep-more.rac
test/data/README.md

Unless otherwise noted, the *.gz files were generated by the gzip command line tool and the *.deflate and *.zlib versions were then generated by script/extract-deflate-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 test/data images, and other versions (*.bmp, *.gif, *.png, *.tiff) were generated by ImageMagick's convert command line tool. The *.wbmp versions were generated by the script/convert-png-to-wbmp.go 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.


animated-red-blue.gif is an original animation by Nigel Tao nigeltao@golang.org.

australian-abc-local-stations.json was crawled from http://data.gov.au/geoserver/abc-local-stations/wfs?request=GetFeature&typeName=ckan_d534c0e9_a9bf_487b_ac8f_b7877a09d162&outputFormat=json

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

crude-flag.* is an original animation by Nigel Tao nigeltao@golang.org. See the lib/nie documentation.

file-sizes.json was created by running script/print-file-sizes-json.go in this repository's root directory.

gifplayer-muybridge.gif is an original animation 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.

github-tags.json was crawled from https://api.github.com/repos/google/wuffs/tags

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.regular.* 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.

hibiscus.primitive.* is the result of running the hibiscus.regular.png image through github.com/fogleman/primitive and other programs:

  • primitive -i hibiscus.regular.png -o hibiscus.primitive.svg -s 442 -n 32
  • inkscape -z -e hibiscus.primitive.png hibiscus.primitive.svg
  • Various invocations of convert and cwebp

hippopotamus.* are various encodings of a cropping of a photo of “Hippopotamus (William)”, held by the Metropolitan Museum of Art. http://www.metmuseum.org/art/collection/search/544227 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.”

json-things.* are original JSON objects by Nigel Tao nigeltao@golang.org.

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

muybridge.gif is derived from https://en.wikipedia.org/wiki/File:Muybridge_race_horse_animated.gif which is in the public domain.

nobel-prizes.json was crawled from http://api.nobelprize.org/v1/prize.json

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.deflate was derived from romeo.txt by a custom program to use fixed (not dynamic) Huffman tables for the deflate encoding.

sheep-more.rac is a RAC-compression of original text by Nigel Tao nigeltao@golang.org.