确保 sharp.format.vips 存在且正确(仅限文件系统)。 #1813
sharp.format.vips
确保作为 resize 选项提供的无效 width 和 height 会抛出错误。 #1817
resize
width
height
允许在 toFormat 中使用 ‘heic’ 和 ‘heif’ 标识符。 #1834 @jaubourg
toFormat
为 composite 操作添加 premultiplied 选项。 #1835 @Andargor
composite
premultiplied
允许使用不同的 toBuffer 选项重复使用实例。 #1860 @RaboliotTheGrey
toBuffer
确保图像至少为 3x3 像素后再尝试执行裁剪操作。