forked from olcxjas-softworks/LarpixClient
big updat:
- update dependencies - add webp support and webp conversion for profile images
This commit is contained in:
parent
19c3dbb42d
commit
95aaaa69ea
244 changed files with 121382 additions and 86 deletions
38
node_modules/super-image-cropper/dist/lib/decoder.d.ts
generated
vendored
Normal file
38
node_modules/super-image-cropper/dist/lib/decoder.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
import { ParsedGif, ParsedFrame } from 'gifuct-js';
|
||||
import { GetArrTypeUnion } from './helper';
|
||||
export type IFrames = Pick<ParsedGif, 'frames'>['frames'];
|
||||
export type IFrame = GetArrTypeUnion<IFrames>;
|
||||
export interface IParsedFrameInfo {
|
||||
frames: ImageData[];
|
||||
delays: number[];
|
||||
parsedFrames: ParsedFrame[];
|
||||
}
|
||||
export declare class Decoder {
|
||||
private url;
|
||||
private parseGIF;
|
||||
constructor(url: string);
|
||||
decode(): Promise<ParsedGif>;
|
||||
decompressFrames(): Promise<IParsedFrameInfo>;
|
||||
/**
|
||||
* Validates and fixes frames that have lost pixels.
|
||||
* @param gif
|
||||
*/
|
||||
private validateAndFixFrame;
|
||||
/**
|
||||
* Generates ImageData objects from parsed frames.
|
||||
* @param frames
|
||||
*/
|
||||
private generate2ImageData;
|
||||
/**
|
||||
* Generates ImageData objects from frames with modified pixels.
|
||||
* @param frames
|
||||
*/
|
||||
private generate2ImageDataWithPixelsModified;
|
||||
/**
|
||||
* @param {string} url
|
||||
* @returns
|
||||
*/
|
||||
private fetchImageData;
|
||||
private handlePixels;
|
||||
private putPixels;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue