UNPKG

gatsby-source-netlify-lfs

Version:

Use Netlify's Git LFS Transform Image API with gatsby-image

12 lines (11 loc) 362 B
import sharp from "sharp"; import { GatsbySourceNetlifyLfsConfig } from './defaultConfig'; export declare function processImage(file: string, options: GatsbySourceNetlifyLfsConfig): Promise<{ src: string; width: number; height: number; density: number; format: keyof sharp.FormatEnum; originalName: string; dominantColor: string; }>;