@cld-apis/utils
Version:
Cloudinary constants and helpers for transformations
61 lines (60 loc) • 1.22 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImageFormats = exports.VIDEO_SOURCE_TYPES = exports.RESOURCE_TYPES = exports.STORAGE_TYPES = void 0;
exports.STORAGE_TYPES = {
UPLOAD: 'upload',
FETCH: 'fetch',
PRIVATE: 'private',
AUTHENTICATED: 'authenticated',
SPRITE: 'sprite',
FACEBOOK: 'facebook',
TWITTER: 'twitter',
YOUTUBE: 'youtube',
VIMEO: 'vimeo',
MULTI: 'multi',
INSTAGRAM: 'instagram',
HULU: 'hulu',
ANIMOTO: 'animoto',
DAILYMOTION: 'dailymotion'
};
exports.RESOURCE_TYPES = {
IMAGE: 'image',
VIDEO: 'video',
RAW: 'raw'
};
exports.VIDEO_SOURCE_TYPES = {
WEBM: 'webm',
MP4: 'mp4',
OGV: 'ogv',
FLV: 'flv',
M3U8: 'm3u8',
TS: 'ts',
MOV: 'mov',
MKV: 'mkv',
MPD: 'mpd'
};
exports.ImageFormats = {
GIF: "gif",
PNG: "png",
JPG: "jpg",
BMP: "bmp",
ICO: "ico",
PDF: "pdf",
TIFF: "tiff",
EPS: "eps",
JPC: "jpc",
JP2: "jp2",
PSD: "psd",
WEBP: "webp",
ZIP: "zip",
SVG: "svg",
WDP: "wdp",
HDX: "hpx",
DJVU: "djvu",
AI: "ai",
FLIF: "flif",
BPG: "bpg",
MIFF: "miff",
TGA: "tga",
HEIC: "heic",
};