Static
convertConverts between image formats using ImageMagick.
Path or data URL of the input image.
Optional
outputPath: stringOptional output path for the converted image. If not provided, a temporary file is used.
Conversion options.
Data URL of the converted image.
Static
cropCrops an image using Sharp.
Path to the input image file.
Path to save the cropped image.
Cropping options.
Static
extractExtracts and saves the first frame of an animated GIF using ImageMagick.
Path or data URL of the animated GIF.
Optional
outputPath: stringOutput path for the first frame. If not provided, the original file will be overwritten if it is a path; if it's a data URL, outputPath is required.
Static
getStatic
getStatic
mergeMerges multiple images into a single image using Sharp.
An array of paths to the input image files.
The path to save the merged image.
Optional settings for merging images.
Static
resizeResizes an image using Sharp.
Path to the input image file.
Resizing options.
Provides utility functions for image manipulation.