mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
Operations: resize, crop, rotate, flip, convert, compress, strip-metadata, brightness, contrast, saturation, color-channels, grayscale, sepia, invert. Includes format detection, MIME mapping, metadata parsing, and engine orchestrator.
6 lines
131 B
TypeScript
6 lines
131 B
TypeScript
import type { Sharp } from "../types.js";
|
|
|
|
export async function invert(image: Sharp): Promise<Sharp> {
|
|
return image.negate();
|
|
}
|