file-adapters
Installation
SKILL.md
File Converter Adapters
This skill provides comprehensive guidance for using @rytass/file-converter packages to process images with resizing, format conversion, watermarking, and pipeline processing.
Overview
All adapters implement the FileConverter interface from @rytass/file-converter, providing a unified API for image processing:
| Package | Function | Based On |
|---|---|---|
@rytass/file-converter |
Core interfaces and pipeline manager (核心介面與管道管理器) | TypeScript interfaces |
@rytass/file-converter-adapter-image-resizer |
Image resizing (圖像縮放) | Sharp ^0.34.5 |
@rytass/file-converter-adapter-image-transcoder |
Format conversion (格式轉換) | Sharp ^0.34.5, file-type ^21.1.1 |
@rytass/file-converter-adapter-image-watermark |
Watermark overlay (浮水印疊加) | Sharp ^0.34.5 |
Base Interface (@rytass/file-converter)
All adapters share these core concepts: