8f8eef53c9
- Optimize imported scene preview images (smart WebP/JPEG/PNG, preserve alpha, keep pixel size) - Update converter to re-encode existing image assets with same algorithm - Improve import/export progress overlay and reduce presentation slide stutter Made-with: Cursor
15 lines
307 B
TypeScript
15 lines
307 B
TypeScript
import type { Buffer } from 'node:buffer';
|
|
|
|
export type OptimizeImageImportResult = {
|
|
buffer: Buffer;
|
|
mime: string;
|
|
ext: string;
|
|
width: number;
|
|
height: number;
|
|
passthrough: boolean;
|
|
};
|
|
|
|
export function optimizeImageBufferVisuallyLossless(
|
|
input: Buffer,
|
|
): Promise<OptimizeImageImportResult>;
|