image-js
Version:
Image processing and manipulation in JavaScript
11 lines • 480 B
TypeScript
import type { Image } from '../Image.js';
import type { CropAlphaOptions } from './operations.types.js';
/**
* Crops the image based on the alpha channel
* This removes lines and columns where the alpha channel is lower than a threshold value.
* @param image - Image to process.
* @param options - Crop alpha options.
* @returns The cropped image.
*/
export declare function cropAlpha(image: Image, options?: CropAlphaOptions): Image;
//# sourceMappingURL=cropAlpha.d.ts.map