API: image
Source:
io/image.ts
Provides a static façade for image manipulation operations, primarily focusing on resizing image streams.
Classes
Image
The Image class provides static methods for common image processing tasks.
All methods operate on and return {@link InputStream} objects, making them
suitable for piping image data through the file system or network.
Methods
resize
resize (original:InputStream, type:string, width:number, height:number):InputStreamResizes an image contained within an InputStream to the specified dimensions.
@param original The InputStream containing the original image data.
@param type The target format of the resized image (e.g., "png", "jpeg", "gif").
@param width The target width in pixels.
@param height The target height in pixels.
@returns A new InputStream containing the resized image data in the specified format.