UNPKG

hastily

Version:

express middleware to simulate fastly cdn

13 lines (12 loc) 407 B
/** * Only partial compatibility is achieved here. Notes: * * - Cannot do percentage-based dimension changes using our streaming strategy * - Same for percentage-based crops and aspect-ratio-based crops */ import { Sharp } from 'sharp'; import { IFastlyParams } from './imageopto-types'; /** * @hidden */ export default function optoToSharp(params: IFastlyParams, sharpStream: Sharp): false | Sharp;