@lastshotlabs/slingshot-image
npm install @lastshotlabs/slingshot-image
Functions
Section titled “Functions”createImagePlugin
Section titled “createImagePlugin”Default values for optional config fields.
function createImagePlugin(rawConfig?: ImagePluginConfig): SlingshotPluginSource: packages/slingshot-image/src/plugin.ts
createMemoryImageCache
Section titled “createMemoryImageCache”Options for the in-memory LRU image cache.
function createMemoryImageCache(opts?: MemoryImageCacheOptions): ImageCacheAdapterSource: packages/slingshot-image/src/cache.ts
Classes
Section titled “Classes”ImageTransformError
Section titled “ImageTransformError”Supported output image formats for the image optimization handler.
Source: packages/slingshot-image/src/types.ts
Interfaces
Section titled “Interfaces”ImageCacheAdapter
Section titled “ImageCacheAdapter”Supported output image formats for the image optimization handler.
Source: packages/slingshot-image/src/types.ts
ImageCacheEntry
Section titled “ImageCacheEntry”Supported output image formats for the image optimization handler.
Source: packages/slingshot-image/src/types.ts
ImagePluginConfig
Section titled “ImagePluginConfig”Supported output image formats for the image optimization handler.
Source: packages/slingshot-image/src/types.ts
ImageTransformOptions
Section titled “ImageTransformOptions”Supported output image formats for the image optimization handler.
Source: packages/slingshot-image/src/types.ts
ImageTransformResult
Section titled “ImageTransformResult”Supported output image formats for the image optimization handler.
Source: packages/slingshot-image/src/types.ts
ImageFormat
Section titled “ImageFormat”Supported output image formats for the image optimization handler.
Source: packages/slingshot-image/src/types.ts