v0.21.0 - 2018年10月4日
-
弃用以下与调整大小相关的函数:
crop、embed、ignoreAspectRatio、max、min和withoutEnlargement。 这些功能现在通过传递给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函数。 增加了针对resize、extend和flatten操作的 per-operationbackground选项。 #1392 -
在
metadata响应中添加了size(仅限 Stream 和 Buffer 输入)。 #695 -
从自定义剪裁操作切换为
vips_find_trim。 #914 -
在
metadata响应中添加了chromaSubsampling和isProgressive属性。 #1186 -
放弃对 Node 4 的支持。 #1212
-
默认启用 SIMD 卷积。 #1213
-
增加针对基于 musl 的 Linux 的实验性预构建二进制文件。 #1379