UNPKG

@bitpatty/imgproxy-url-builder

Version:

A TypeScript helper library for building imgproxy URLs

17 lines (16 loc) 629 B
/** * The saturation (positive floating point number from 0 to 1). */ type SaturationOptions = number; /** * Adjust saturation of the resulting image. * * See https://github.com/imgproxy/imgproxy/blob/6f292443eafb2e39f9252175b61faa6b38105a7c/docs/generating_the_url.md#saturation-idsaturation for the imgproxy documentation * * @param percentage A positive floating point number, where 1 * keeps the saturation unchanged * @returns The saturation param string */ declare const saturation: (percentage: SaturationOptions) => string; export default saturation; export { SaturationOptions };