mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 17:49:52 +00:00
Add WebP2 support
This commit is contained in:
8
codecs/wp2/enc/wp2_enc.d.ts
vendored
Normal file
8
codecs/wp2/enc/wp2_enc.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { EncodeOptions } from '../../src/codecs/wp2/encoder-meta';
|
||||
|
||||
interface WP2Module extends EmscriptenWasm.Module {
|
||||
encode(data: BufferSource, width: number, height: number, options: EncodeOptions): Uint8Array;
|
||||
free_result(): void;
|
||||
}
|
||||
|
||||
export default function(opts: EmscriptenWasm.ModuleOpts): Promise<WP2Module>;
|
||||
Reference in New Issue
Block a user