跳转到内容

v0.21.0 - 2018年10月4日

  • 弃用以下与调整大小相关的函数: cropembedignoreAspectRatiomaxminwithoutEnlargement。 这些功能现在通过传递给 resize 函数的选项来访问。 例如: embed('north') 现在是 resize(width, height, { fit: 'contain', position: 'north' })crop('attention') 现在是 resize(width, height, { fit: 'cover', position: 'attention' })max().withoutEnlargement() 现在是 resize(width, height, { fit: 'inside', withoutEnlargement: true })#1135

  • 弃用 background 函数。 增加了针对 resizeextendflatten 操作的 per-operation background 选项。 #1392

  • metadata 响应中添加了 size(仅限 Stream 和 Buffer 输入)。 #695

  • 从自定义剪裁操作切换为 vips_find_trim#914

  • metadata 响应中添加了 chromaSubsamplingisProgressive 属性。 #1186

  • 放弃对 Node 4 的支持。 #1212

  • 默认启用 SIMD 卷积。 #1213

  • 增加针对基于 musl 的 Linux 的实验性预构建二进制文件。 #1379

  • 通过 vips_rotate 添加对任意旋转角度的支持。 #1385 @freezy