Exposed speed slider, but it's weird

This commit is contained in:
Surma
2020-02-06 17:01:47 -08:00
parent 810856eb0a
commit b9b4a696c1
7 changed files with 44 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
export interface EncodeOptions {
speed: number;
}
export interface EncoderState { type: typeof type; options: EncodeOptions; }
@@ -9,4 +10,5 @@ export const mimeType = 'image/jpegxl';
export const extension = 'jxl';
// These come from struct WebPConfig in encode.h.
export const defaultOptions: EncodeOptions = {
speed: 1,
};