• Stars
    star
    3,564
  • Rank 12,441 (Top 0.3 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 1 year ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A very compact representation of an image placeholder

ThumbHash

A very compact representation of a placeholder for an image. Store it inline with your data and show it while the real image is loading for a smoother loading experience. It's similar to BlurHash but with the following advantages:

  • Encodes more detail in the same space
  • Also encodes the aspect ratio
  • Gives more accurate colors
  • Supports images with alpha

Despite doing all of these additional things, the code for ThumbHash is still similar in complexity to the code for BlurHash. One potential drawback compared to BlurHash is that the parameters of the algorithm are not configurable (everything is automatically configured).

A demo and more information is available here: https://evanw.github.io/thumbhash/.

Implementations

This repo contains implementations for the following languages:

These additional implementations also exist outside of this repo:

If you want to add your own implementation here, you can send a PR that puts a link to your implementation in this README.

More Repositories

1

esbuild

An extremely fast bundler for the web
Go
38,106
star
2

glfx.js

An image effects library for JavaScript using WebGL
JavaScript
3,288
star
3

node-source-map-support

Adds source map support to node.js (for stack traces)
JavaScript
2,162
star
4

csg.js

Constructive solid geometry on meshes using BSP trees in JavaScript
JavaScript
1,791
star
5

lightgl.js

A lightweight WebGL library
JavaScript
1,517
star
6

thinscript

A low-level programming language inspired by TypeScript
C
1,360
star
7

webgl-filter

An image editor in WebGL
JavaScript
1,047
star
8

webgl-water

WebGL Water Demo
JavaScript
1,016
star
9

theta

JavaScript
751
star
10

kiwi

A schema-based binary format for efficiently encoding trees of data
C++
673
star
11

polywasm

A JavaScript polyfill for WebAssembly
JavaScript
669
star
12

source-map-visualization

A simple visualization of source map data
JavaScript
506
star
13

skew

A web-first, cross-platform programming language with an optimizing compiler
JavaScript
411
star
14

glslx

A GLSL type checker, code formatter, and minifier for WebGL
HTML
409
star
15

webgl-path-tracing

Path tracing in GLSL using WebGL
JavaScript
345
star
16

fsm

Finite State Machine Designer
JavaScript
294
star
17

rapt

Robots Are People Too, a platformer in HTML5
C++
209
star
18

float-toy

Use this to build intuition for the IEEE floating-point format
JavaScript
155
star
19

sky

A text editor written in the Skew programming language
Objective-C++
136
star
20

indirectbuffer

A small library for out-of-heap memory in emscripten
C++
129
star
21

font-texture-generator

HTML
122
star
22

buddy-malloc

An implementation of buddy memory allocation
C
100
star
23

pbjs

A minimal implementation of Google Protocol Buffers for JavaScript
JavaScript
95
star
24

packer

Simple port of /packer/ by Dean Edwards to node.js
JavaScript
86
star
25

webgl-recorder

Record all WebGL calls from any app for playback later
JavaScript
81
star
26

socket.io-python

A socket.io bridge for Python
Python
67
star
27

glslx-vscode

GLSLX support in Visual Studio Code
TypeScript
65
star
28

tla-fuzzer

A fuzzer for various top-level await bundling strategies
JavaScript
56
star
29

unwind

Universal disassembler for Python bytecode (supports Python 2 and 3)
Python
49
star
30

node-flatbuffers

An implementation of FlatBuffers in pure JavaScript
JavaScript
48
star
31

figma-fill-rule-editor

A Figma plugin for editing fill rules
HTML
43
star
32

polyfrag

Geometry library that splits polyhedra using 3D planes
C++
38
star
33

esbuild-plugin-glslx

A plugin for esbuild that enables importing *.glslx files.
JavaScript
37
star
34

emscripten-library-generator

A library generator for the emscripten compiler
JavaScript
37
star
35

gl4

A small library for working with OpenGL 4
C++
34
star
36

cs224final

Final project for CS 224: Interactive Computer Graphics
C++
34
star
37

bitscript

An experimental language that compiles to JavaScript and C++
JavaScript
32
star
38

silvermath.js

A high-quality equation editor for JavaScript
JavaScript
32
star
39

decorator-tests

JavaScript
32
star
40

package-json-browser-tests

JavaScript
26
star
41

banner

A python scraper for Banner, Brown University's course catalog
Python
26
star
42

bundler-esm-cjs-tests

JavaScript
23
star
43

gl

A small C++ library for working with OpenGL
C++
23
star
44

bend

A statically-typed programming language for the web
JavaScript
20
star
45

esoptimize

A JavaScript AST optimizer
JavaScript
18
star
46

wasm-lang

A hobby language that compiles to WebAssembly
TypeScript
18
star
47

soda

A course browser for Brown University
JavaScript
18
star
48

OES_texture_float_linear-polyfill

A polyfill for OES_texture_float_linear (a WebGL extension)
JavaScript
17
star
49

node-terminal-notifier

A node API for notifications on Mac OS X Lion
JavaScript
17
star
50

node-spacemouse

An OS X driver for the 3dconnexion SpaceMouse in JavaScript
JavaScript
17
star
51

mineverse

A little experiment, please ignore
JavaScript
17
star
52

cppcodegen

Generates C++ code from a JSON AST
TypeScript
15
star
53

simple_svg_parser

A small library for getting geometry out of an svg file
Python
15
star
54

ride

A web-based IDE for ROS
JavaScript
15
star
55

mobile-touchpads

Use one or more iPhones as remote touchpads in an HTML page
JavaScript
14
star
56

easyxml

Concise XML generation in Python
Python
14
star
57

jest-esbuild-demo

JavaScript
13
star
58

fast-closure-compiler

Make the Google Closure Compiler start faster
JavaScript
13
star
59

webgl-vr-flight

Needs an iPhone 6 and Google Cardboard
HTML
10
star
60

uint8array-json-parser

JSON.parse() for Uint8Array to get around the maximum string size in V8
JavaScript
9
star
61

webgl-vr-editor

Makefile
9
star
62

rand.js

Super simple pseudo-random number generator in JavaScript
JavaScript
8
star
63

oculus-rift-webgl

Oculus Rift experiments with WebGL
8
star
64

skew-nanojpeg

A port of the NanoJPEG library
HTML
7
star
65

minisharp

An optimizing compiler from a subset of C# to JavaScript
C#
6
star
66

mdi-material-ui-inline

Makefile
5
star
67

glvr

GLUT-style bindings for the Oculus Rift
C
5
star
68

gccjs

A simple build tool that uses Google Closure Compiler
Java
5
star
69

skew-lang.org

HTML
5
star
70

skew-vscode

Skew support in Visual Studio Code
TypeScript
5
star
71

skew-imports

4
star
72

css-import-tests

CSS
4
star
73

js-destructuring-fuzzer

JavaScript
4
star
74

section_testing

A Rust library for section-style testing
Rust
4
star
75

dlmax

Python
3
star
76

head-tracker-window

HTML
3
star
77

browser-source-map-bugs

JavaScript
3
star
78

skew-atom

Syntax highlighting for Skew in the Atom editor
CoffeeScript
2
star
79

entry-point-resolve-test

Testing what happens when you bundle a package name
Shell
2
star
80

clang-initializer-list-plugin

A plugin for clang that checks if a constructor is missing a POD field in its initializer list
C++
2
star
81

dome-calibration

Ignore this. I'm only using a public repository because I need a quick HTTPS website.
HTML
2
star
82

SimpleLibOVR

Simple C API for Oculus Rift orientation info
C++
2
star
83

skew-rapt

Makefile
1
star
84

thin-ir

TypeScript
1
star