>>106473757
What's your issue?
/**
* @param {ReadableStream<Uint8Array<ArrayBuffer>>} stream
* @returns {Promise<
* width: number,
* height: number,
* bytesPerPixel: number,
* colorType: number,
* bitDepth: number
* data: ReadableStream<Uint8Array<ArrayBuffer>>
* >}
*/
async decodeStream(stream) {
if (!await this.readPNGSignature(stream)) throw new PNGError("Not a PNG file", "Bad signature");
Comment too long. Click here to view the full text.