-
Weekr 站点测试
高性能 Node.js 图像处理 元数据 原始URL: https://sharp.pixelplumbing.com/ 翻译日期: 2026-02-07 11:52:04 目标语言: 中文(简体) 描述 sharp 官网的中文翻译,包含功能介绍、性能特点和使用说明等内容。 高性能 Node.js 图像处理 The typical use case for this high speed Node-API module is to convert large images in common formats to smaller, web-friendly JPEG, PNG, WebP, GIF and AVIF images of varying dimensions. It can be used with all JavaScript runtimes that provide support for Node-API v9, including Node.js >= 18.17.0, Deno and Bun. Resizing an image is typically 4x-5x faster than using the quickest ImageMagick and GraphicsMagick settings due to its use oflibvips. 色彩空间、嵌入的 ICC 配置文件和 alpha 透明通道都能正确处理。 Lanczos 重采样确保不会为了速度而牺牲质量。 As well as image resizing, operations such as rotation, extraction, compositing and 伽马校正 are…