跳转到内容

v0.18.0 - 2017年5月30日

  • 移除之前已弃用的输出格式“选项”功能: quality、progressive、compressionLevel、withoutAdaptiveFiltering、 withoutChromaSubsampling、trellisQuantisation、trellisQuantization、 overshootDeringing、optimiseScans 和 optimizeScans。

  • 确保最大输出尺寸基于所使用的格式。 #176 @stephanebachelier

  • 当使用 overlayWith 且无 alpha 通道时,避免耗时的(反)预乘运算。 #573 @strarsis

  • 读取元数据时包括像素深度(例如“uchar”)。 #577 @moedusa

  • 添加对基于 Buffer 和 Stream 的 TIFF 输出支持。 #587 @strarsis

  • 通过设置环境变量 NODE_DEBUG=sharp 来暴露 libvips 的警告。 #607 @puzrin

  • 切换到 libvips 实现的“attention”和“entropy”裁剪策略。 #727

  • 改善最近邻整数倍上采样的性能与准确性。 #752 @MrIbby

  • 构造函数单参数 API:允许纯对象,拒绝 null/undefined。 #768 @kub1x

  • 确保 ARM64 预编译二进制文件使用正确的 C++11 ABI 版本。 #772 @ajiratech2

  • 通过使用动态值避免缩小(加载时)的混叠现象。 #781 @kleisauke

  • 暴露 libvips 的 “squash” 参数以启用 1-bit TIFF 输出。 #783 @YvesBos

  • 添加支持任意 +/-90 度倍数的旋转。 #791 @ncoden

  • 为 toFormat 添加“jpg”别名,作为“jpeg”的简写。 #814 @jingsam