Media / API

foldkit-media/unpic

Images on a host that resizes them itself (Shopify, Cloudinary, imgix, Contentful, and the rest unpic knows), as a Provider: each candidate is the host's own URL for that width, so no server of ours runs and nothing is stored. unpic, an optional peer, reads the host from the URL and writes it.

Functions

detectThe provider of url's host, or none when unpic knows no host for it. The provider answers only for an asset on that same host (its key is the image's URL),…

Interfaces