This algorithm is used to calculate a small binary hash representing an image using a Discrete Cosine Transform. The hash can then be used to generate a lossy representation of the original image.
Refer to the Go package documentation for information about the API.
thumbhash program for a practical use case.
Go-thumbhash is open source software distributed under the ISC license.