Media / API

foldkit-media/sharp

The media server's Transformer on a Node server, through sharp. At most concurrency transforms run at once (limitTransforms), and an original is measured from its header before it is decoded, so a small file that inflates to a huge picture is a 413, never an exhausted heap.

Functions

inspectorSharpThe Inspector on a Node server: an original's size and alpha from sharp, and a thumbnail for its ThumbHash. Alpha is whether any pixel is not opaque…
transformerSharp