You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
422 B
26 lines
422 B
import { DecoderFn, EncoderFn, ImageCallback } from '@jimp/core'; |
|
|
|
interface JpegClass { |
|
_quality: number; |
|
quality: (n: number, cb?: ImageCallback<this>) => this; |
|
} |
|
|
|
interface Jpeg { |
|
mime: { 'image/jpeg': string[] }, |
|
|
|
constants: { |
|
MIME_JPEG: 'image/jpeg'; |
|
} |
|
|
|
encoders: { |
|
'image/jpeg': EncoderFn |
|
} |
|
|
|
decoders: { |
|
'image/jpeg': DecoderFn |
|
} |
|
|
|
class: JpegClass |
|
} |
|
|
|
export default function(): Jpeg;
|
|
|