Skip to content

Function: gifPathFromUrl() ​

ts
function gifPathFromUrl(
   value, 
   provider, 
   origins?
): string | null;

Defined in: gifs.ts:210

The token path for a media url, or null when the url is not a plain image on the provider's media host. Used on the way in, so a url that could not be turned back into the same url is never offered to anyone.

Parameters ​

ParameterType
valueunknown
providerGifProvider
origins?GifOrigins

Returns ​

string | null

Released under the GNU Affero General Public License v3.0.